ago1024 / WurmServerModLauncher

Wurm Unlimited Mod Launcher
59 stars 21 forks source link

SpellMod error after changes to getCost() #65

Open ago1024 opened 3 years ago

ago1024 commented 3 years ago

Modifying spell costs broken since server 1.9.0

Caused by: java.lang.NoSuchMethodError: com.wurmonline.server.spells.Spell.getCost(Z)I
        at org.gotti.wurmunlimited.mods.spellmod.SpellMod.onServerStarted(SpellMod.java:103)
        at org.gotti.wurmunlimited.modloader.server.ServerHook.lambda$fireOnServerStarted$2(ServerHook.java:81)
        at org.gotti.wurmunlimited.modloader.server.Listeners.lambda$fire$0(Listeners.java:63)
        at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891)
        at org.gotti.wurmunlimited.modloader.server.Listeners.fire(Listeners.java:61)

The Spell.getCost(boolean forItem) method has been split up into many methods for creatures, items, terrain...