Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
4b4ee30bda
Commit
8f2e5df3a7
@ -38,7 +38,7 @@ public class PistonLine implements PanzernAlgorithm {
|
|||||||
@Override
|
@Override
|
||||||
public PanzernResult check(Block source, Map<BlockFace, Block> adjacent, Set<Material> adjacentMaterials) {
|
public PanzernResult check(Block source, Map<BlockFace, Block> adjacent, Set<Material> adjacentMaterials) {
|
||||||
for (BlockFace blockFace : BLOCK_FACES) {
|
for (BlockFace blockFace : BLOCK_FACES) {
|
||||||
for (int i = 1; i < 12; i++) {
|
for (int i = 1; i < 14; i++) {
|
||||||
Block relativeBlock = source.getRelative(blockFace.getModX() * i, blockFace.getModY() * i, blockFace.getModZ() * i);
|
Block relativeBlock = source.getRelative(blockFace.getModX() * i, blockFace.getModY() * i, blockFace.getModZ() * i);
|
||||||
if (relativeBlock.getType().isAir()) {
|
if (relativeBlock.getType().isAir()) {
|
||||||
break;
|
break;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren