Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public override bool OnHeldInteractStep(float secondsUsed, ItemSlot slot, Entity
public override void OnHeldInteractStop(float secondsUsed,
ItemSlot slot,
EntityAgent byEntity,
BlockSelection blockSel,
BlockSelection? blockSel,
EntitySelection entitySel,
ref EnumHandling handling)
{
Expand All @@ -48,6 +48,7 @@ public override void OnHeldInteractStop(float secondsUsed,
if (byEntity.World.Side == EnumAppSide.Server)
{
if (byEntity is not EntityPlayer entityPlayer) return;
if (blockSel?.Position is null) return;
var groundStorage = TryGetSelectedGroundStorage(entityPlayer, blockSel);
if (!TryGetCrucibleStack(entityPlayer, blockSel, out var crucibleSlot) ||
crucibleSlot?.Itemstack is not { } crucibleStack)
Expand Down