mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2025-12-10 05:19:43 +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:
@@ -11,6 +11,6 @@ mod_id=customdiscsplugin
|
||||
# Target an older API to make it compatible with older versions of Simple Voice Chat
|
||||
voicechat_api_version=2.3.3
|
||||
|
||||
plugin_version=2.3.1
|
||||
plugin_version=2.3.2
|
||||
maven_group=me.Navoei.customdiscsplugin
|
||||
archives_base_name=custom-discs
|
||||
@@ -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