DuelMonster / MinersAdvantage

MinersAdvantage is a reimagening of my previous mod 'SuperMiner'. It is a rewrite from the ground up that aims to solve all previous issues and to add additional features.
GNU Lesser General Public License v3.0
21 stars 1 forks source link

Not able to gather sugar cane #73

Open rmcgwier opened 2 years ago

rmcgwier commented 2 years ago

Issue description:

Hit the bottom block of some sugar cane, top 2 blocks stayed there and I did not get any sugar cane in my inventory. Basically I just destroyed the bottom block and the sugar cane acted like a tree would.

What happens:

Hit the bottom block of some sugar cane, top 2 blocks stayed there and I did not get any sugar cane in my inventory. Basically I just destroyed the bottom block and the sugar cane acted like a tree would.

What you expected to happen:

To collect all 3 blocks of sugar cane.

Does this issue occur on a server or single player world?

Steps to reproduce:

  1. Created new instance.
  2. added only miners advantage
  3. tried on new world

Versions (make sure you are on the latest version before reporting):

Crash log:

[19:21:04] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [19:21:04] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [19:21:04] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [19:21:04] [main/INFO]: Forge Mod Loader version 12.18.3.2511 for Minecraft 1.10.2 loading [19:21:04] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\mcgwi\curseforge\minecraft\Install\runtime\jre-legacy\windows-x64\jre-legacy [19:21:04] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:21:04] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [19:21:04] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:21:04] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:21:04] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [19:21:05] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557 [19:21:05] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc [19:21:05] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [19:21:05] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [19:21:05] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [19:21:05] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [19:21:05] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [19:21:06] [Client thread/INFO]: Setting user: mcgwier [19:21:08] [Client thread/INFO]: LWJGL Version: 2.9.4 [19:21:09] [Client thread/INFO]: Could not load splash.properties, will create a default one [19:21:09] [Client thread/INFO]: [net.minecraftforge.fml.client.SplashProgress:start:223]: ---- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward.

Time: 9/29/22 7:21 PM Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

A detailed walkthrough of the error, its code path and all known details is as follows:

-- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 192941048 bytes (184 MB) / 778567680 bytes (742 MB) up to 3817865216 bytes (3641 MB) JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4096m -Xms256m IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 516.94' Renderer: 'NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2' [19:21:09] [Client thread/INFO]: MinecraftForge v12.18.3.2511 Initialized [19:21:09] [Client thread/INFO]: Replaced 231 ore recipes [19:21:09] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer [19:21:09] [Client thread/INFO]: Searching C:\Users\mcgwi\curseforge\minecraft\Instances\test\mods for mods [19:21:10] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load [19:21:10] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, minersadvantage] at CLIENT [19:21:10] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, minersadvantage] at SERVER [19:21:10] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MinersAdvantage [19:21:10] [Client thread/INFO]: Processing ObjectHolder annotations [19:21:10] [Client thread/INFO]: Found 423 ObjectHolder annotations [19:21:10] [Client thread/INFO]: Identifying ItemStackHolder annotations [19:21:10] [Client thread/INFO]: Found 0 ItemStackHolder annotations [19:21:10] [Client thread/INFO]: Applying holder lookups [19:21:10] [Client thread/INFO]: Holder lookups applied [19:21:10] [Client thread/INFO]: Applying holder lookups [19:21:10] [Client thread/INFO]: Holder lookups applied [19:21:10] [Client thread/INFO]: Applying holder lookups [19:21:10] [Client thread/INFO]: Holder lookups applied [19:21:10] [Client thread/INFO]: Configured a dormant chunk cache size of 0 [19:21:10] [Forge Version Check/INFO]: [minersadvantage] Starting version check at http://www.duelmonster.talktalk.net/Minecraft/MinersAdvantage/forge_update.json [19:21:10] [Client thread/INFO]: Applying holder lookups [19:21:10] [Client thread/INFO]: Holder lookups applied [19:21:10] [Client thread/INFO]: Injecting itemstacks [19:21:10] [Client thread/INFO]: Itemstack injection complete [19:21:11] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [19:21:11] [Sound Library Loader/INFO]: Starting up SoundSystem... [19:21:11] [Thread-7/INFO]: Initializing LWJGL OpenAL [19:21:11] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [19:21:11] [Thread-5/INFO]: Using sync timing. 200 frames of Display.update took 248151100 nanos [19:21:11] [Thread-7/INFO]: OpenAL initialized. [19:21:11] [Sound Library Loader/INFO]: Sound engine started [19:21:12] [Client thread/INFO]: Max texture size: 16384 [19:21:12] [Client thread/INFO]: Created: 16x16 textures-atlas [19:21:12] [Client thread/INFO]: Injecting itemstacks [19:21:12] [Client thread/INFO]: Itemstack injection complete [19:21:12] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods [19:21:12] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MinersAdvantage [19:21:13] [Client thread/INFO]: SoundSystem shutting down... [19:21:13] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [19:21:13] [Sound Library Loader/INFO]: Starting up SoundSystem... [19:21:13] [Thread-9/INFO]: Initializing LWJGL OpenAL [19:21:13] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [19:21:13] [Thread-9/INFO]: OpenAL initialized. [19:21:13] [Client thread/INFO]: Max texture size: 16384 [19:21:14] [Sound Library Loader/INFO]: Sound engine started [19:21:14] [Client thread/INFO]: Created: 512x512 textures-atlas [19:21:23] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2 [19:21:23] [Server thread/INFO]: Generating keypair [19:21:23] [Server thread/INFO]: Injecting existing block and item data into this server instance [19:21:23] [Server thread/INFO]: Applying holder lookups [19:21:23] [Server thread/INFO]: Holder lookups applied [19:21:23] [Server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@7dd6984) [19:21:24] [Server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@7dd6984) [19:21:24] [Server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@7dd6984) [19:21:24] [Server thread/INFO]: Preparing start region for level 0 [19:21:25] [Server thread/INFO]: Preparing spawn area: 15% [19:21:26] [Server thread/INFO]: Preparing spawn area: 32% [19:21:27] [Server thread/INFO]: Preparing spawn area: 53% [19:21:28] [Server thread/INFO]: Preparing spawn area: 74% [19:21:29] [Server thread/INFO]: Preparing spawn area: 99% [19:21:29] [Server thread/INFO]: Changing view distance to 12, from 10 [19:21:29] [Netty Local Client IO #0/INFO]: Server protocol version 2 [19:21:29] [Netty Server IO #1/INFO]: Client protocol version 2 [19:21:29] [Netty Server IO #1/INFO]: Client attempting to join with 4 mods : FML@8.0.99.99,Forge@12.18.3.2511,mcp@9.19,minersadvantage@1.1.20.210 [19:21:29] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established [19:21:29] [Server thread/INFO]: [Server thread] Server side modded connection established [19:21:30] [Server thread/INFO]: mcgwier[local:E:ccbda214] logged in with entity id 1792 at (246.5, 58.0, 249.5) [19:21:30] [Server thread/INFO]: mcgwier joined the game [19:21:32] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2525ms behind, skipping 50 tick(s) [19:21:40] [Server thread/INFO]: mcgwier has just earned the achievement [Taking Inventory] [19:21:40] [Client thread/INFO]: [CHAT] mcgwier has just earned the achievement [Taking Inventory] [19:21:41] [Server thread/INFO]: Saving and pausing game... [19:21:41] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [19:21:42] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [19:21:42] [Server thread/INFO]: Saving chunks for level 'New World'/The End [19:22:22] [Server thread/ERROR]: Exception caught during firing event net.minecraftforge.event.world.BlockEvent$BreakEvent@77587b77: java.lang.NullPointerException at co.uk.duelmonster.minersadvantage.events.SharedEvents.onBlockBreak(SharedEvents.java:96) ~[SharedEvents.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_6_SharedEvents_onBlockBreak_BreakEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) [EventBus.class:?] at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:742) [ForgeHooks.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:287) [lv.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180784_a(PlayerInteractionManager.java:220) [lv.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:631) [me.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:40) [ja.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:10) [ja.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149) [bzl.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] [19:22:22] [Server thread/ERROR]: Index: 1 Listeners: [19:22:22] [Server thread/ERROR]: 0: NORMAL [19:22:22] [Server thread/ERROR]: 1: ASM: co.uk.duelmonster.minersadvantage.events.SharedEvents@5120886f onBlockBreak(Lnet/minecraftforge/event/world/BlockEvent$BreakEvent;)V [19:22:22] [Server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_51] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149) [bzl.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] Caused by: java.lang.NullPointerException at co.uk.duelmonster.minersadvantage.events.SharedEvents.onBlockBreak(SharedEvents.java:96) ~[SharedEvents.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_6_SharedEvents_onBlockBreak_BreakEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) ~[EventBus.class:?] at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:742) ~[ForgeHooks.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:287) ~[lv.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180784_a(PlayerInteractionManager.java:220) ~[lv.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:631) ~[me.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:40) ~[ja.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:10) ~[ja.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[fl$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:45) ~[h.class:?] ... 5 more [19:22:22] [Server thread/ERROR]: Exception caught during firing event net.minecraftforge.event.world.BlockEvent$BreakEvent@6c27aa1c: java.lang.NullPointerException at co.uk.duelmonster.minersadvantage.events.SharedEvents.onBlockBreak(SharedEvents.java:96) ~[SharedEvents.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_6_SharedEvents_onBlockBreak_BreakEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) [EventBus.class:?] at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:742) [ForgeHooks.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:287) [lv.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180784_a(PlayerInteractionManager.java:220) [lv.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:631) [me.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:40) [ja.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:10) [ja.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149) [bzl.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] [19:22:22] [Server thread/ERROR]: Index: 1 Listeners: [19:22:22] [Server thread/ERROR]: 0: NORMAL [19:22:22] [Server thread/ERROR]: 1: ASM: co.uk.duelmonster.minersadvantage.events.SharedEvents@5120886f onBlockBreak(Lnet/minecraftforge/event/world/BlockEvent$BreakEvent;)V [19:22:22] [Server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_51] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149) [bzl.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] Caused by: java.lang.NullPointerException at co.uk.duelmonster.minersadvantage.events.SharedEvents.onBlockBreak(SharedEvents.java:96) ~[SharedEvents.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_6_SharedEvents_onBlockBreak_BreakEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) ~[EventBus.class:?] at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:742) ~[ForgeHooks.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:287) ~[lv.class:?] at net.minecraft.server.management.PlayerInteractionManager.func_180784_a(PlayerInteractionManager.java:220) ~[lv.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:631) ~[me.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:40) ~[ja.class:?] at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:10) ~[ja.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[fl$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:45) ~[h.class:?] ... 5 more [19:22:23] [Server thread/INFO]: Saving and pausing game... [19:22:23] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [19:22:23] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [19:22:23] [Server thread/INFO]: Saving chunks for level 'New World'/The End [19:24:00] [Server thread/INFO]: Stopping server [19:24:00] [Server thread/INFO]: Saving players [19:24:00] [Server thread/INFO]: Saving worlds [19:24:00] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [19:24:00] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [19:24:00] [Server thread/INFO]: Saving chunks for level 'New World'/The End [19:24:00] [Server thread/INFO]: Unloading dimension 0 [19:24:00] [Server thread/INFO]: Unloading dimension -1 [19:24:00] [Server thread/INFO]: Unloading dimension 1 [19:24:00] [Server thread/INFO]: Applying holder lookups [19:24:00] [Server thread/INFO]: Holder lookups applied

[19:24:04] [Client thread/INFO]: SoundSystem shutting down... [19:24:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Expand for ---- Minecraft Crash Report ---- ![2022-09-29_19 08 15](https://user-images.githubusercontent.com/21150891/193170201-89888e63-a6c9-4d38-9d82-bf3fb5070702.png) ``` PASTE_HERE ```