mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2026-03-26 18:58:14 +05:00
Jukebox Fix
Fixed a bug where redstone would pop off the top of a jukebox after the record is done playing.
This commit is contained in:
@@ -82,11 +82,9 @@ public class HopperManager implements Listener {
|
||||
|
||||
if (!event.isCancelled()) {
|
||||
if (!Arrays.toString(hopper.getInventory().getContents()).contains("null")) return;
|
||||
|
||||
hopper.getInventory().setItem(hopper.getInventory().firstEmpty(), jukebox.getRecord());
|
||||
|
||||
block.setType(Material.AIR);
|
||||
block.setType(Material.JUKEBOX);
|
||||
|
||||
jukebox.setRecord(new ItemStack(Material.AIR));
|
||||
block.setBlockData(jukebox.getBlockData());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user