Skip to content

Commit

Permalink
Fix silkworm interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiDragon committed Aug 3, 2023
1 parent 7022666 commit f5e0050
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public SilkWormItem(FabricItemSettings settings) {

@Override
public ActionResult useOnBlock(ItemUsageContext context) {
if (context == null || context.getWorld().isClient) {
return super.useOnBlock(context);
}
var result = InfestedHelper.tryToInfest(context.getWorld(), context.getBlockPos());
if (result == ActionResult.SUCCESS && (context.getPlayer() == null || !context.getPlayer().isCreative())) {
context.getStack().decrement(1);
Expand Down

0 comments on commit f5e0050

Please sign in to comment.