Fix compile

This commit is contained in:
TomTom 2024-03-16 17:32:16 +01:00
parent 41506f281a
commit 0944160d2a
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class LitMinionsConverter : Converter {
val locationId = AxMinionsPlugin.dataHandler.getLocationID(location) val locationId = AxMinionsPlugin.dataHandler.getLocationID(location)
val chestLocationId = if (chestLocation != null) AxMinionsPlugin.dataHandler.getLocationID(chestLocation) else 0 val chestLocationId = if (chestLocation != null) AxMinionsPlugin.dataHandler.getLocationID(chestLocation) else 0
val minion = Minion(location, uuid, Bukkit.getOfflinePlayer(uuid), type, level, ItemStack(Material.AIR), chestLocation, direction, statistics, storage, locationId, chestLocationId) val minion = Minion(location, uuid, Bukkit.getOfflinePlayer(uuid), type, level, ItemStack(Material.AIR), chestLocation, direction, statistics, storage, locationId, chestLocationId, 0)
minion.setTicking(true) minion.setTicking(true)
AxMinionsPlugin.dataHandler.saveMinion(minion) AxMinionsPlugin.dataHandler.saveMinion(minion)
} }

View File

@ -92,6 +92,7 @@ class MinionPlaceListener : Listener {
stats, stats,
0.0, 0.0,
locationId, locationId,
0,
0 0
) )
Minions.startTicking(chunk) Minions.startTicking(chunk)