Versions
CraftBook version: 3.10.5
Bukkit version: 1.18.1
Describe the bug
If you pipe in a music disc into a jukebox it only works if a disc is already in the jukebox. It also deletes the old disc when the new one is insertet.
To Reproduce
- create a simple pipe system
- put a jukebox to the end
- try to pipe a disk into the empty jukebox
- add disc to the jukebox
- activate the pipe again
Expected behavior
- it should be vise versa i think
- only pipe in the disc when the jukebox is empty so the disc gets not deleted
Additional context
|
if (juke.getPlaying() != Material.AIR) { |
Versions
CraftBook version: 3.10.5
Bukkit version: 1.18.1
Describe the bug
If you pipe in a music disc into a jukebox it only works if a disc is already in the jukebox. It also deletes the old disc when the new one is insertet.
To Reproduce
Expected behavior
Additional context
CraftBook/src/main/java/com/sk89q/craftbook/mechanics/pipe/Pipes.java
Line 177 in d8a3e9d