Schematica

Schematica

8M Downloads

[1.12.2] LAN Player crash using materials button.

MokahTGS opened this issue ยท 3 comments

commented

MC 1.12.2
Schematica 1.8.0.165
Lunatrius Core 1.2.0.42
Forge 2515

A player in a LAN world is crashing when trying to use the materials button when building schematics. Press the button and crash. Report below. The host machine does not crash. Just the LAN player.

https://pastebin.com/vFaQpWxT

commented

Well we have 200+ mods and this happens on a specific schematic. It also crashes the host machine if the same schematic is used and the materials button is pressed. Same crash log.

Should I be looking for the block of liquid somewhere in the schematic?

commented

It can be either a normal block (line 59) or a liquid block (line 70). You can just check the SchematicaMapping NBT compound of the schematic to get a list of all blocks in the schematic. One of those blocks will be the one causing the crash.

commented

The item stack is null for some item. This is most likely a mod issue. Could try to connecting via LAN by using only Forge, LunatriusCore and Schematica?

ItemStack stack = ItemStack.EMPTY;
try {
stack = block.getPickBlock(blockState, rtr, world, pos, player);
} catch (final Exception e) {
Reference.logger.warn("Could not get the pick block for: {}", blockState, e);
}
if (block instanceof IFluidBlock || block instanceof BlockLiquid) {
final IFluidHandler fluidHandler = FluidUtil.getFluidHandler(world, pos, null);
final FluidActionResult fluidActionResult = FluidUtil.tryFillContainer(new ItemStack(Items.BUCKET), fluidHandler, 1000, null, false);
if (fluidActionResult.isSuccess()) {
final ItemStack result = fluidActionResult.getResult();
if (!result.isEmpty()) {
stack = result;
}
}
}
if (stack.isEmpty()) {
Reference.logger.warn("Could not find the item for: {}", blockState);
continue;
}