This commit is contained in:
modmuss50 2019-09-12 16:55:41 +01:00
parent 1cc56ed2e3
commit 8c9c736da9
13 changed files with 170 additions and 169 deletions

View file

@ -109,7 +109,7 @@ public class ItemFrequencyTransmitter extends Item {
}
}
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
return new TypedActionResult<>(ActionResult.SUCCESS, stack, true);
}
@Environment(EnvType.CLIENT)

View file

@ -49,7 +49,7 @@ public class ItemManual extends Item {
if(world.isClient){
openGui(player);
}
return new TypedActionResult<>(ActionResult.SUCCESS, player.getStackInHand(hand));
return new TypedActionResult<>(ActionResult.SUCCESS, player.getStackInHand(hand), true);
}
@Environment(EnvType.CLIENT)

View file

@ -54,6 +54,6 @@ public class ItemScrapBox extends Item {
WorldUtils.dropItem(out, world, player.getBlockPos());
stack.decrement(1);
}
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
return new TypedActionResult<>(ActionResult.SUCCESS, stack, true);
}
}

View file

@ -141,9 +141,9 @@ public class ItemIndustrialChainsaw extends ItemChainsaw {
}
}
}
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
return new TypedActionResult<>(ActionResult.SUCCESS, stack, true);
}
return new TypedActionResult<>(ActionResult.PASS, stack);
return new TypedActionResult<>(ActionResult.PASS, stack, true);
}
@Override

View file

@ -200,9 +200,9 @@ public class ItemIndustrialDrill extends ItemDrill {
}
}
}
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
return new TypedActionResult<>(ActionResult.SUCCESS, stack, true);
}
return new TypedActionResult<>(ActionResult.PASS, stack);
return new TypedActionResult<>(ActionResult.PASS, stack, true);
}
@Override

View file

@ -138,9 +138,9 @@ public class ItemNanosaber extends SwordItem implements IEnergyItemInfo, ItemDur
}
}
}
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
return new TypedActionResult<>(ActionResult.SUCCESS, stack, true);
}
return new TypedActionResult<>(ActionResult.PASS, stack);
return new TypedActionResult<>(ActionResult.PASS, stack, true);
}
@Override