Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
59caeca6f7
Commit
9af09f5863
@ -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());
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren