From 39d30054bf4968630feffa631a098f821fbc396b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 22 Mar 2020 07:59:36 +0100 Subject: [PATCH] Fixing autoloader 1.15 --- .../src/de/steamwar/bausystem/world/AutoLoader_15.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java b/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java index 0dbd23e..846dd40 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java @@ -1,6 +1,5 @@ package de.steamwar.bausystem.world; -import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.block.Block; @@ -9,8 +8,6 @@ import org.bukkit.block.data.Powerable; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; -import java.util.logging.Level; - class AutoLoader_15 { private AutoLoader_15() { } @@ -32,6 +29,7 @@ class AutoLoader_15 { Powerable powerable = (Powerable) data; powerable.setPowered(active); + block.setBlockData(powerable); block.getState().update(true); return true; } @@ -67,7 +65,6 @@ class AutoLoader_15 { loader.print("§eKnopf betätigt", true); } else { loader.print("§eUnbekannter Block betätigt (nicht aufgenommen)", false); - Bukkit.getLogger().log(Level.SEVERE, material.name()); } } }