BuildCraft|Core

BuildCraft|Core

7M Downloads

Quarry crashes when reaching y=0 with no bedrock there

Barteks2x opened this issue ยท 0 comments

commented

Exception from dev environment with version from curse 7.99.3:

net.minecraft.util.ReportedException: Ticking block entity
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:801) ~[MinecraftServer.class:?]
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:699) ~[MinecraftServer.class:?]
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) ~[IntegratedServer.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.NullPointerException
	at net.minecraft.util.math.Vec3d.<init>(Vec3d.java:38) ~[Vec3d.class:?]
	at buildcraft.builders.tile.TileQuarry.update(TileQuarry.java:336) ~[TileQuarry.class:?]
	at net.minecraft.world.World.updateEntities(World.java:1957) ~[World.class:?]
	at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:651) ~[WorldServer.class:?]
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:795) ~[MinecraftServer.class:?]
	... 4 more

(found when testing cubic chunks compatibility, but also happens with vanilla+forge+buildcraft).

The line of code in TileQuarry

currentTask = new TaskMoveDrill(drillPos, new Vec3d(boxIterator.advance()));