Skip to content

Commit

Permalink
Items filling apothecary can be picked up by Hopperhock immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealWormbo committed Jan 18, 2025
1 parent ae58a56 commit 26d074b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,19 @@ public boolean collideEntityItem(ItemEntity item) {
setFluid(State.WATER);
bucketItem.checkExtraContent(null, level, stack, getBlockPos().above()); // Spawns the fish
item.setItem(new ItemStack(Items.BUCKET));
XplatAbstractions.INSTANCE.itemFlagsComponent(item).apothecarySpawned = true;
return true;
}

if (XplatAbstractions.INSTANCE.extractFluidFromItemEntity(item, Fluids.WATER)) {
setFluid(State.WATER);
XplatAbstractions.INSTANCE.itemFlagsComponent(item).apothecarySpawned = true;
return true;
}

if (XplatAbstractions.INSTANCE.extractFluidFromItemEntity(item, Fluids.LAVA)) {
setFluid(State.LAVA);
XplatAbstractions.INSTANCE.itemFlagsComponent(item).apothecarySpawned = true;
return true;
}

Expand Down

0 comments on commit 26d074b

Please sign in to comment.