SteamWar/BauSystem
Archiviert
13
0

Test autoloader fix

Dieser Commit ist enthalten in:
Lixfel 2020-07-25 10:52:59 +02:00
Ursprung 402f6b0a11
Commit 4c581d523c

Datei anzeigen

@ -3,6 +3,7 @@ package de.steamwar.bausystem.world;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.BlockData; import org.bukkit.block.data.BlockData;
import org.bukkit.block.data.Directional; import org.bukkit.block.data.Directional;
import org.bukkit.block.data.Powerable; import org.bukkit.block.data.Powerable;
@ -34,9 +35,7 @@ class AutoLoader_15 {
block.getState().update(true); block.getState().update(true);
if(data instanceof Directional){ if(data instanceof Directional){
Directional directional = (Directional) data; block.getRelative(BlockFace.DOWN).getState().update(true);
System.out.println(directional.getFacing().toString());
block.getRelative(directional.getFacing()).getState().update(true);
} }
return true; return true;