1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-21 04:05:48 +00:00
Slimefun4/src/me/mrCookieSlime/Slimefun/Setup
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
..
Files.java Slimefun 4 2016-04-14 18:24:03 +02:00
Messages.java Little color fixes in messages 2017-06-22 14:20:31 +02:00
MiscSetup.java Added WikiSetup.class 2017-01-19 18:26:56 +01:00
ResearchSetup.java Added a research for blistering ingots 2017-08-12 15:18:05 +02:00
SlimefunManager.java Chain Armor no longer spams messages 2017-04-09 09:59:45 +02:00
SlimefunSetup.java Only create a hopper "target" as long as the block is actually a hopper. 2017-10-05 19:49:33 -07:00
WikiSetup.java Documented WikiSetup 2017-08-14 18:16:09 +02:00