SteamWar/BauSystem2.0
Archiviert
12
0

Hotfix ShieldPrinting
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-08-24 17:23:03 +02:00
Ursprung 59caeca6f7
Commit 9af09f5863

Datei anzeigen

@ -29,6 +29,7 @@ import org.bukkit.Material;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace; import org.bukkit.block.BlockFace;
import org.bukkit.block.PistonMoveReaction;
import org.bukkit.block.data.BlockData; import org.bukkit.block.data.BlockData;
import org.bukkit.boss.BarColor; import org.bukkit.boss.BarColor;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
@ -114,6 +115,7 @@ public class ShieldPrinting implements Listener {
Map<Vector, Vector> temp = new HashMap<>(); Map<Vector, Vector> temp = new HashMap<>();
for (Block block : blockList) { for (Block block : blockList) {
if (Region.getRegion(block.getLocation()) != region) continue; if (Region.getRegion(block.getLocation()) != region) continue;
if (block.getPistonMoveReaction() == PistonMoveReaction.BREAK) continue;
Vector vector = block.getLocation().toVector(); Vector vector = block.getLocation().toVector();
Vector origin = vector.clone(); Vector origin = vector.clone();
vector = vector.add(direction.getDirection()); vector = vector.add(direction.getDirection());