Crash when trying to breed bees with no genetic information
v1993 opened this issue ยท 0 comments
Out of curiosity I've tried to breed bees without any NBT data (obtained via IC2 replicator) and game promptly crashed:
[23:46:08] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking block entity
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:773) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:279) ~[chd.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.NullPointerException
at forestry.apiculture.BeekeepingLogic.tickBreed(BeekeepingLogic.java:380) ~[BeekeepingLogic.class:?]
at forestry.apiculture.BeekeepingLogic.doWork(BeekeepingLogic.java:251) ~[BeekeepingLogic.class:?]
at forestry.apiculture.tiles.TileBeeHousingBase.updateServerSide(TileBeeHousingBase.java:177) ~[TileBeeHousingBase.class:?]
at forestry.core.tiles.TileForestry.func_73660_a(TileForestry.java:99) ~[TileForestry.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1838) ~[amu.class:?]
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613) ~[oo.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767) ~[MinecraftServer.class:?]
... 4 more
[23:46:09] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: This crash report has been saved to: /home/v/.minecraft/crash-reports/crash-2021-08-12_23.46.08-server.txt
[23:46:09] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[23:46:09] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
[23:46:09] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:553]: ---- Minecraft Crash Report ----
WARNING: coremods are present:
BNBGamingCore (BNBGamingCore-1.12.2-0.12.0.jar)
GSHooksLoader (GalaxySpace-1.12.2-2.0.16.jar)
ForgelinPlugin (Forgelin-1.8.4.jar)
LogisticsPipesCoreLoader (logisticspipes-0.10.4.5.jar)
MicdoodlePlugin (MicdoodleCore-1.12.2-4.0.2.280.jar)
OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)
SoundUnpack (OpenSecurity-1.12.2-1.0-71.jar)
TransformerLoader (OpenComputers-MC1.12.2-1.7.5.217.jar)
Contact their authors BEFORE contacting forge
// Shall we play a game?
Time: 8/12/21 11:46 PM
Description: Ticking block entity
java.lang.NullPointerException: Ticking block entity
at forestry.apiculture.BeekeepingLogic.tickBreed(BeekeepingLogic.java:380)
at forestry.apiculture.BeekeepingLogic.doWork(BeekeepingLogic.java:251)
at forestry.apiculture.tiles.TileBeeHousingBase.updateServerSide(TileBeeHousingBase.java:177)
at forestry.core.tiles.TileForestry.func_73660_a(TileForestry.java:99)
at net.minecraft.world.World.func_72939_s(World.java:1838)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:279)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:748)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at forestry.apiculture.BeekeepingLogic.tickBreed(BeekeepingLogic.java:380)
at forestry.apiculture.BeekeepingLogic.doWork(BeekeepingLogic.java:251)
at forestry.apiculture.tiles.TileBeeHousingBase.updateServerSide(TileBeeHousingBase.java:177)
at forestry.core.tiles.TileForestry.func_73660_a(TileForestry.java:99)
-- Block entity being ticked --
Details:
Name: forestry:apiary // forestry.apiculture.tiles.TileApiary
Block type: ID #538 (tile.for.apiary // forestry.apiculture.blocks.BlockApiculture // forestry:apiary)
Block data value: 2 / 0x2 / 0b0010
Block location: World: (114,64,267), Chunk: (at 2,4,11 in 7,16; contains blocks 112,0,256 to 127,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Actual block type: ID #538 (tile.for.apiary // forestry.apiculture.blocks.BlockApiculture // forestry:apiary)
Actual block data value: 2 / 0x2 / 0b0010
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1838)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)
-- Affected level --
Details:
Level name: Survival World 10 UU Profiling
All players: 1 total; [GCEntityPlayerMP['valerka_2003'/225, l='Survival World 10 UU Profiling', x=113.51, y=64.00, z=264.84]]
Chunk stats: ServerChunkCache: 1681 Drop: 0
Level seed: -3136340031686023280
Level generator: ID 06 - BIOMESOP, ver 0. Features enabled: true
Level generator options: {"landScheme":"continents","tempScheme":"large_zones","rainScheme":"large_zones","biomeSize":"large","amplitude":1.0,"generateBopOre":true,"generatePoisonIvy":false,"generateBerryBushes":true,"generateThorns":true,"generateQuicksand":false,"generateLiquidPoison":true,"generateHotSprings":true,"generateNetherHives":false,"generateEndFeatures":true,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"coordinateScale":684.412,"heightScale":684.412,"upperLimitScale":512.0,"lowerLimitScale":512.0}
Level spawn location: World: (147,64,278), Chunk: (at 3,4,6 in 9,17; contains blocks 144,0,272 to 159,255,287), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 67592 game time, 67592 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 45191 (now: false), thunder time: 105196 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:279)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:748)
While genetic-less bees should obviously be unobtainable in regular gameplay, I think some sort of fallback would be nice for this case.