diff --git a/src/de/Ste3et_C0st/Furniture/Objects/garden/TFlowerPot.java b/src/de/Ste3et_C0st/Furniture/Objects/garden/TFlowerPot.java index 6ec8d99..3557a91 100644 --- a/src/de/Ste3et_C0st/Furniture/Objects/garden/TFlowerPot.java +++ b/src/de/Ste3et_C0st/Furniture/Objects/garden/TFlowerPot.java @@ -10,26 +10,21 @@ import org.bukkit.Material; import org.bukkit.Tag; import org.bukkit.block.Block; import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; -import org.bukkit.event.block.BlockPhysicsEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.util.EulerAngle; -import de.Ste3et_C0st.Furniture.Main.main; import de.Ste3et_C0st.FurnitureLib.main.Furniture; import de.Ste3et_C0st.FurnitureLib.main.ObjectID; import de.Ste3et_C0st.FurnitureLib.main.Type.SQLAction; import de.Ste3et_C0st.FurnitureLib.main.entity.fArmorStand; -public class TFlowerPot extends Furniture implements Listener { +public class TFlowerPot extends Furniture{ Block pot; public TFlowerPot(ObjectID id){ super(id); setPotState(); if(isFinish()){ - Bukkit.getPluginManager().registerEvents(this, main.getInstance()); return; } spawn(id.getStartLocation()); @@ -81,14 +76,4 @@ public class TFlowerPot extends Furniture implements Listener { this.destroy(player); } } - - @EventHandler - private void onPhysiks(BlockPhysicsEvent e){ - if(getObjID()==null){return;} - if(getObjID().getSQLAction().equals(SQLAction.REMOVE)){return;} - if (pot==null) return; - if (e.getBlock() == null) return; - if (!e.getBlock().equals(pot)) return; - e.setCancelled(true); - } }