Excavating ores crashes Magma server
fengshuo2004 opened this issue · comments
Description
Using OreExcavation 1.10.162 to vein-mine any block (vanilla or modded) crashes the server side instantly.
The server is running the latest version of Magma. This bug only occured with the most recent Magma update, so I am almost certain that it's caused by code change on Magma's side.
I would much appreciate if you could find a work-around to get OreExcavation working with the latest Magma version. It's also totally fine if you'd rather not change your code, in which case I'll file the issue to Magma.
Logs
Please see crash reports and logs attached below. The point of interest is:
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.player.Player.getBukkitEntity()" because "humanEntity" is null
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callPlayerExhaustionEvent(CraftEventFactory.java:1655) ~[forge-1.18.2-40.2.4-universal.jar%23125!/:?]
at net.minecraft.world.food.FoodData.m_38703_(FoodData.java:184) ~[server-1.18.2-20220404.173914-srg.jar%23120!/:?]
at oreexcavation.handlers.MiningAgent.tickMiner(Unknown Source) ~[OreExcavation-1.10.162.jar%23102!/:?]
at oreexcavation.handlers.MiningScheduler.tickAgents(Unknown Source) ~[OreExcavation-1.10.162.jar%23102!/:?]
at oreexcavation.handlers.EventHandler.onTick(Unknown Source) ~[OreExcavation-1.10.162.jar%23102!/:?]
at net.minecraftforge.eventbus.ASMEventHandler_517_EventHandler_onTick_ServerTickEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.event.ForgeEventFactory.onPostServerTick(ForgeEventFactory.java:957) ~[forge-1.18.2-40.2.4-universal.jar%23125!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:1186) ~[server-1.18.2-20220404.173914-srg.jar%23120!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:941) ~[server-1.18.2-20220404.173914-srg.jar%23120!/:?]
at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:259) ~[server-1.18.2-20220404.173914-srg.jar%23120!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
crash-2023-06-04_12.53.12-server.txt
More Info
Other Installed Mods
Applied-Mekanistics-1.2.1.jar
AutoRegLib-1.7-53.jar
BrewinAndChewin-1.18.2-1.0.1.jar
CTM-1.18.2-1.1.5+5.jar
ExNihiloAE-1.18.2-20220607-014628.jar
ExNihiloMekanism-1.18.2-20220608-005057.jar
ExNihiloSequentia-1.18.2-20221113-044349.jar
ExNihiloThermal-1.18.2-20220608-014416.jar
ExNihiloTinkers-1.18.2-20220711-043110.jar
ExtremeReactors2-1.18.2-2.0.61.jar
FarmersDelight-1.18.2-1.2.0.jar
FruitTrees-1.18.2-forge-5.0.1.jar
ImmersiveEngineering-1.18.2-8.4.0-161.jar
JAOPCA-1.18.2-4.1.15.28.jar
Jade-1.18.2-forge-5.2.6.jar
JadeAddons-1.18.2-forge-2.4.1.jar
Kiwi-1.18.2-forge-6.1.3.jar
Mantle-1.18.2-1.9.43.jar
Mekanism-1.18.2-10.2.5.465.jar
MekanismGenerators-1.18.2-10.2.5.465.jar
MekanismTools-1.18.2-10.2.5.465.jar
NethersDelight-1.18.2-2.2.0.jar
OreExcavation-1.10.162.jar
Patchouli-1.18.2-71.1.jar
Quark-3.2-358.jar
Steam_Rails-1.2.0+forge-mc1.18.2-build.7.jar
StorageDrawers-1.18.2-10.2.1.jar
TConstruct-1.18.2-3.6.3.111.jar
XaerosWorldMap_1.29.5_Forge_1.18.2.jar
Xaeros_Minimap_23.3.3_Forge_1.18.2.jar
ZeroCore2-1.18.2-2.1.31.jar
almostunified-forge-1.18.2-0.3.8.jar
appleskin-forge-mc1.18.2-2.4.1.jar
appliedenergistics2-forge-11.7.0.jar
architectury-4.11.90-forge.jar
badpackets-forge-0.1.3.jar
balm-3.2.6.jar
blueprint-1.18.2-5.5.0.jar
cofh_core-1.18.2-9.2.1.39.jar
cookingforblockheads-forge-1.18.2-12.2.0.jar
corn_delight-1.0.6-1.18.2.jar
create-1.18.2-0.5.0.i.jar
create_central_kitchen-1.18.2-for-create-0.5.0.i-1.3.1.jar
createdeco-1.3.0-1.18.2.jar
creeperconfetti-3.11.jar
curios-forge-1.18.2-5.0.9.0.jar
excompressum-forge-1.18.2-5.0.3.jar
flywheel-forge-1.18.2-0.6.8.a.jar
ftb-library-forge-1802.3.11-build.177.jar
ftb-quests-forge-1802.3.14-build.191.jar
ftb-teams-forge-1802.2.10-build.96.jar
ftbbackups2-forge-1.18.2-1.0.18.jar
industrial-foregoing-1.18.2-3.3.1.6-10.jar
ironchest-1.18.2-13.2.11.jar
item-filters-forge-1802.2.8-build.47.jar
jei-1.18.2-forge-10.2.1.1004.jar
kotlinforforge-3.11.0-all.jar
mmlib-1.2.0-1.18.2.jar
polymorph-forge-1.18.2-0.46.jar
questsadditions-1.18.2-1.4.1.jar
sliceanddice-1.1.3.jar
some-assembly-required-1.18.2-2.0.8.jar
thermal_expansion-1.18.2-9.2.0.20.jar
thermal_foundation-1.18.2-9.2.0.46.jar
thermal_integration-1.18.2-9.2.0.16.jar
titanium-1.18.2-3.5.9-43.jar
Thank you!
As stated in the related issue: This does not appear to be a standard Forge server/client and is therefore not supported. If you can recreate the issue with a regular Forge server then I may be able to debug your issue, otherwise this is a bug with a noncompliant server variant.