Create

Create

86M Downloads

Crash in modpack when placing create:white_sail's

CovexLy opened this issue ยท 2 comments

commented

I've recently installed Craft to Exile [DISSONANCE] and am getting client crash when placing white_sails against another sail (using the arrows to determine where the sail end up extending to).
CtE issue: mahjerion/Craft-to-Exile-Dissonance#286
The crash report shows CalemiUtils crashing the client with IllegalArgumentException "Invalid hand null" and decompiling calemiutils WrenchEvent.class the issue seems to show up from the line:
final ItemStack stack = player.func_184586_b(player.func_184600_cs());
or more readably (likely):
final ItemStack stack = player.get_item_stack(player.hand())
I can't confirm that CalemiUtils aren't doing anything bad here but the probable cause of the problem is that Create has invalidated the event.getEntity() priorly and hasn't properly consumed the onBlockPlaced event which is then given to CalemiUtils.

edit: player in this case being final PlayerEntity player = (PlayerEntity)event.getEntity();

commented

Issue has since been fixed in CalemiUtils-1.16.4

commented

Alright sounds good.