Future MC

Future MC

14M Downloads

Dispensers spit out their Shears when nothing could be sheared

flori-schwa opened this issue ยท 0 comments

commented

In modern versions of Minecraft, dispensers never actually drop Shears items. If they are activated with shears in their inventory and no entity could be sheared infront of the dispenser, a clicking noise is played and the dispenser retains the shears item.

However, with FutureMC 0.2.11, Shears are dropped by the dispenser if no Sheep could be sheared.

The problematic line(s) of code are here:

if (!successful && existing != null) {
return existing.dispense(source, stack)
}