CraftBook icon indicating copy to clipboard operation
CraftBook copied to clipboard

Disc in Jukebox gets deletet with pipes

Open Crousus opened this issue 3 years ago • 0 comments

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

https://github.com/EngineHub/CraftBook/blob/d8a3e9dad63b5a59eab48afa45e85a823083e2a6/src/main/java/com/sk89q/craftbook/mechanics/pipe/Pipes.java#L177

Crousus avatar Jan 11 '22 12:01 Crousus