Fabricators-of-Create / Create

[Fabric Mod] Building Tools and Aesthetic Technology
MIT License
827 stars 185 forks source link

The track in a jukebox continues to play even though there is technically no music disc in it #1458

Open MrRedstoneToGo opened 1 week ago

MrRedstoneToGo commented 1 week ago

Describe the Bug

If a music disk is removed from a jukebox by a Create machine while it is still playing (only possible with Mechanical Arm and Chute, Funnels and Smart chutes are blocked by the jukebox's redstone signal), you can still hear the track. However, the jukebox no longer emits a redstone signal and the jukebox is also empty in Jade.

Reproduction Steps

  1. Put a music disc in a jukebox
  2. Remove the music disk with a chute or mechanical arm.

Expected Result

The song stops as if you were pulling out the Muaic disk by hand.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 11

Mod Version

0.5.1f

Minecraft Version

1.20.1

Other Mods

No response

Additional Context

I took advantage of this and this is what I got. Just put a music disc on the depot and listen to the wonderful music :)

broken_pigstep.zip

There is a schematic in the zip file

TropheusJ commented 1 week ago

update FAPI

MrRedstoneToGo commented 1 week ago

Fabric API is already installed (version 0.92.1)

IThundxr commented 1 week ago

cant reproduce with fapi 0.92.1+1.20.1

MrRedstoneToGo commented 1 week ago

I only tested the bug with Create Fabric and Fabric API, Fabric 0.15.10 and it was still there.

grafik

Build a tower of chutes and jukeboxes, always alternating. Maybe you can hear several pieces on top of each other.

MrRedstoneToGo commented 1 week ago

I have found out something more precise: When a Chute takes an item from a Jukebox, the Music Disk is removed from the Jukebox inventory, but the song is not stopped. A Mechanical Arm stops the song properly. However, there are problems if a second Mechanical wants to pick up the Music Disc from the jukebox at the same time. Then the song is not stopped. Maybe this is related to game ticks. If the mechanical arm only searches for a target every second tick, maybe the latter bug is also fixed.