From 09ce79e666c6098fa62bfd2aa67b26e8f1e0c481 Mon Sep 17 00:00:00 2001 From: Sen Date: Tue, 18 Mar 2025 13:18:23 +0100 Subject: [PATCH] cleanup --- java/src/game/block/BlockJukebox.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/java/src/game/block/BlockJukebox.java b/java/src/game/block/BlockJukebox.java index 7147400..ae45af8 100755 --- a/java/src/game/block/BlockJukebox.java +++ b/java/src/game/block/BlockJukebox.java @@ -15,18 +15,13 @@ public class BlockJukebox extends Block { super(Material.wood); this.setTab(CheatTab.tabTech); } - + public boolean onBlockActivated(World worldIn, BlockPos pos, State state, EntityNPC playerIn, Facing side, float hitX, float hitY, float hitZ) { if(!worldIn.client) worldIn.playSound(worldIn.rand.pick(SoundEvent.values()), pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 1.0f); return true; } - - public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, State state, float chance, int fortune) { - if(!worldIn.client) - super.dropBlockAsItemWithChance(worldIn, pos, state, chance, 0); - } - + public ModelBlock getModel(String name, State state) { return new ModelBlock("jukebox_side").add().dnswe().u("jukebox_top"); }