1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 19:55:48 +00:00
Slimefun4/src/me/mrCookieSlime/Slimefun/holograms
David Kirchner f278abc76a Only create a hopper "target" as long as the block is actually a hopper.
This fixes a bug that led to abandoned ArmorStands (what I was referring
to when I said "target") that lingered after the hopper was destroyed.
The issue was that tick (called asynchronously) was creating a new
ArmorStand (via InfusedHopper.getArmorStand()) after the block handler's
onBreak call removed the one that was created in onPlace.

The code that recreates the ArmorStand remains in tick() just in case,
somehow, it ends up getting removed by some other force. However, this
code should never be reached if the hopper itself is removed.

This fixes TheBusyBiscuit/Slimefun4#189,
fixes TheBusyBiscuit/Slimefun4#190, and
fixes TheBusyBiscuit/Slimefun4#428.
2017-10-05 19:49:33 -07:00
..
AndroidStatusHologram.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
AnimalGrowthAccelerator.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
ArmorStandFactory.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
AutoBreeder.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
CargoHologram.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
EnergyHologram.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
InfusedHopper.java Only create a hopper "target" as long as the block is actually a hopper. 2017-10-05 19:49:33 -07:00
Projector.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
ReactorHologram.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00
XPCollector.java Updated "Unsupported Version" message 2017-06-14 12:35:25 +02:00