Cleanup/remove old "spamless" chat message code.
This was quickly ported to use overlays in 1.19, this commit removes the old junk code.
This commit is contained in:
parent
357c86940d
commit
770ac2292f
15 changed files with 77 additions and 194 deletions
|
@ -42,7 +42,6 @@ import reborncore.common.powerSystem.RcEnergyTier;
|
|||
import reborncore.common.util.ItemUtils;
|
||||
import techreborn.TechReborn;
|
||||
import techreborn.utils.InitUtils;
|
||||
import techreborn.utils.MessageIDs;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -62,7 +61,7 @@ public class BatteryItem extends Item implements RcEnergyItem {
|
|||
public TypedActionResult<ItemStack> use(final World world, final PlayerEntity player, final Hand hand) {
|
||||
final ItemStack stack = player.getStackInHand(hand);
|
||||
if (player.isSneaking()) {
|
||||
ItemUtils.switchActive(stack, 1, MessageIDs.poweredToolID, player);
|
||||
ItemUtils.switchActive(stack, 1, player);
|
||||
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
|
||||
}
|
||||
return new TypedActionResult<>(ActionResult.PASS, stack);
|
||||
|
@ -70,7 +69,7 @@ public class BatteryItem extends Item implements RcEnergyItem {
|
|||
|
||||
@Override
|
||||
public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) {
|
||||
ItemUtils.checkActive(stack, 1, MessageIDs.poweredToolID, entity);
|
||||
ItemUtils.checkActive(stack, 1, entity);
|
||||
if (world.isClient) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue