Iguanas Tinker Tweaks

Iguanas Tinker Tweaks

12M Downloads

HarvestLevel Override doesn't work

BakermanLP opened this issue ยท 1 comments

commented

There seems to be a bug in setHarvestLevel. We want to change the HarvestLevels of some ores, but that doesn't seem to work properly. The HarvestLevels are wrong ingame. This is in single and multiplayer. We use forge-1208, TConstruct_mc1.7.10_1.6.0d40.1.jar and IguanaTinkerTweaks-1.7.10-2.0.2.jar.

We tried to config the following:
config/IguanaTinkerTweaks/Modules.cfg:
...
B:Override=true
...

config/IguanaTinkerTweaks/BlockOverride.cfg:
...
oredict {
# Vanilla Erze
oreCoal=1
oreIron=2
oreGold=3
oreLapis=4
oreRedstone=4
oreDiamond=5
oreEmerald=5
oreNetherQuartz=5
glowstone=5

    # Sonstige Erze
    oreSalt=0
    oreAluminium=1
    oreAluminum=1

...
}

Heres is a part of the logfile, that could cause the problem:
[B#441] [11:24:15] [Client thread/WARN]: Caught exception in findAndInvokeHandlers: java.lang.reflect.InvocationTargetException
[B#441] java.lang.reflect.InvocationTargetException
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[B#441] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[B#441] at java.lang.reflect.Method.invoke(Method.java:606)
[B#441] at mantle.pulsar.control.PulseManager.findAndInvokeHandlers(PulseManager.java:235)
[B#441] at mantle.pulsar.control.PulseManager.postInit(PulseManager.java:214)
[B#441] at iguanaman.iguanatweakstconstruct.IguanaTweaksTConstruct.postInit(IguanaTweaksTConstruct.java:117)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[B#441] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[B#441] at java.lang.reflect.Method.invoke(Method.java:606)
[B#441] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
[B#441] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
[B#441] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[B#441] at java.lang.reflect.Method.invoke(Method.java:606)
[B#441] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
[B#441] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
[B#441] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
[B#441] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
[B#441] at com.google.common.eventbus.EventBus.post(EventBus.java:275)
[B#441] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
[B#441] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[B#441] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[B#441] at java.lang.reflect.Method.invoke(Method.java:606)
[B#441] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
[B#441] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
[B#441] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
[B#441] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
[B#441] at com.google.common.eventbus.EventBus.post(EventBus.java:275)
[B#441] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
[B#441] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:694)
[B#441] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
[B#441] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:541)
[B#441] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
[B#441] at net.minecraft.client.main.Main.main(SourceFile:148)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[B#441] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[B#441] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[B#441] at java.lang.reflect.Method.invoke(Method.java:606)
[B#441] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
[B#441] at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[B#441] Caused by: java.lang.ArrayIndexOutOfBoundsException: 19
[B#441] at net.minecraft.block.Block.setHarvestLevel(Block.java:2179)
[B#441] at iguanaman.iguanatweakstconstruct.harvestlevels.HarvestLevelTweaks.modifyBlock(HarvestLevelTweaks.java:104)
[B#441] at iguanaman.iguanatweakstconstruct.override.BlockOverride.processConfig(BlockOverride.java:95)
[B#441] at iguanaman.iguanatweakstconstruct.override.IguanaOverride.doOverride(IguanaOverride.java:42)
[B#441] at iguanaman.iguanatweakstconstruct.override.IguanaOverride.postInit(IguanaOverride.java:27)
[B#441] ... 43 more

commented

Ah yes, I feared some error like that might pop up at some time. Just not with the ore dictionary. Fixed