Null check unloading tiles. For some reason there was a null tile entity. Fixes
@@ -324,6 +324,9 @@ public static boolean shouldRefresh(TileEntity tile, net.minecraft.world.World w
*/
@Overwrite
public static void onTileChunkUnload(TileEntity te) {
+ if (te == null) {
+ return;
+ }
if (!te.getWorld().isRemote) {
try (final PhaseContext<?> o = BlockPhase.State.TILE_CHUNK_UNLOAD.createPhaseContext()
.source(te)) {
