Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
1.19.2 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 authored Aug 14, 2022
1 parent 6fda0bb commit efc0eb2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {

dependencies {
// Other plugins
compileOnly(lootylibs.geary.papermc.core)
compileOnly(lootyLibs.geary.papermc.core)

// From Geary

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.mineinabyss
version=0.7
version=0.8
kotlinVersion=1.6.10
idofrontVersion=0.11.97
serverVersion=1.19-R0.1-SNAPSHOT
idofrontVersion=0.12.102
serverVersion=1.19.2-R0.1-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
geary = "0.18.105"
geary = "0.19.108"

[libraries]
geary-papermc-core = { module = "com.mineinabyss:geary-papermc-core", version.ref = "geary" }
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencyResolutionManagement {

versionCatalogs {
create("libs").from("com.mineinabyss:catalog:$idofrontVersion")
create("lootylibs").from(files("gradle/lootylibs.versions.toml"))
create("lootyLibs").from(files("gradle/lootyLibs.versions.toml"))
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/com/mineinabyss/looty/LootyFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.mineinabyss.looty

import com.mineinabyss.geary.components.RegenerateUUIDOnClash
import com.mineinabyss.geary.datatypes.GearyEntity
import com.mineinabyss.geary.datatypes.GearyType
import com.mineinabyss.geary.datatypes.GearyEntityType
import com.mineinabyss.geary.helpers.NO_ENTITY
import com.mineinabyss.geary.helpers.addParent
import com.mineinabyss.geary.helpers.entity
Expand Down Expand Up @@ -64,7 +64,7 @@ object LootyFactory {
CraftMagicNumbers.getMaterial(item.item),
tag.getInt("CustomModelData")
)] ?: return
pdc.encodeComponents(setOf(), GearyType())
pdc.encodeComponents(setOf(), GearyEntityType())
pdc.encodePrefabs(listOf(prefab))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.mineinabyss.looty.ecs.systems

import com.mineinabyss.geary.annotations.AutoScan
import com.mineinabyss.geary.prefabs.PrefabKey
import com.mineinabyss.geary.systems.TickingSystem
import com.mineinabyss.geary.systems.RepeatingSystem
import com.mineinabyss.geary.systems.accessors.TargetScope
import com.mineinabyss.idofront.recipes.register
import com.mineinabyss.looty.LootyFactory
Expand All @@ -17,7 +17,7 @@ import org.bukkit.event.player.PlayerJoinEvent
import org.bukkit.inventory.ItemStack

@AutoScan
class ItemRecipeSystem : TickingSystem(), Listener {
class ItemRecipeSystem : RepeatingSystem(), Listener {
private val TargetScope.recipes by get<RegisterRecipeComponent>()
private val TargetScope.prefabKey by get<PrefabKey>()
private val registeredRecipes = mutableSetOf<NamespacedKey>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import com.mineinabyss.geary.annotations.AutoScan
import com.mineinabyss.geary.components.relations.Persists
import com.mineinabyss.geary.papermc.store.encode
import com.mineinabyss.geary.papermc.store.encodeComponentsTo
import com.mineinabyss.geary.systems.TickingSystem
import com.mineinabyss.geary.systems.RepeatingSystem
import com.mineinabyss.geary.systems.accessors.TargetScope
import com.mineinabyss.geary.systems.accessors.building.flatten
import com.mineinabyss.idofront.items.editItemMeta
import org.bukkit.inventory.ItemStack
import kotlin.time.Duration.Companion.seconds

@AutoScan
class PeriodicSaveSystem : TickingSystem(interval = 5.seconds) {
class PeriodicSaveSystem : RepeatingSystem(interval = 5.seconds) {
private val TargetScope.persisting by getRelations<Persists, Any>().flatten()
private val TargetScope.item by get<ItemStack>()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.mineinabyss.geary.papermc.GearyMCContext
import com.mineinabyss.geary.papermc.GearyMCContextKoin
import com.mineinabyss.geary.papermc.access.toGeary
import com.mineinabyss.geary.systems.GearyListener
import com.mineinabyss.geary.systems.TickingSystem
import com.mineinabyss.geary.systems.RepeatingSystem
import com.mineinabyss.geary.systems.accessors.TargetScope
import com.mineinabyss.idofront.nms.aliases.NMSItemStack
import com.mineinabyss.idofront.nms.aliases.toNMS
Expand All @@ -38,7 +38,7 @@ import org.bukkit.entity.Player
* - All valid items get re-serialized TODO in the future there should be some form of dirty tag so we aren't unnecessarily serializing things
*/
@AutoScan
class ItemTrackerSystem : TickingSystem(interval = 1.ticks) {
class ItemTrackerSystem : RepeatingSystem(interval = 1.ticks) {
private val TargetScope.player by get<Player>()
private val TargetScope.itemCache by get<PlayerItemCache>()

Expand Down

0 comments on commit efc0eb2

Please sign in to comment.