Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
c92d610ca9
Commit
e49724e593
@ -194,7 +194,8 @@ public class Explosion {
|
||||
int oY = sY > dY ? -1 : 1;
|
||||
int oZ = sZ > dZ ? -1 : 1;
|
||||
while (true) {
|
||||
if (simulatorData.getBlockType(floor(x), floor(y), floor(z)) != Material.AIR) {
|
||||
Material material = simulatorData.getBlockType(floor(x), floor(y), floor(z));
|
||||
if (material != Material.LAVA && material != Material.WATER && !material.isAir()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -54,10 +54,10 @@ public class PreviewRecord {
|
||||
}
|
||||
|
||||
public void show(Player player) {
|
||||
showModeMap.computeIfAbsent(player, p -> {
|
||||
destroyedBlocks.forEach(vector -> {
|
||||
p.sendBlockChange(vector.toLocation(player.getWorld()), AIR_BLOCK_DATA);
|
||||
player.sendBlockChange(vector.toLocation(player.getWorld()), AIR_BLOCK_DATA);
|
||||
});
|
||||
showModeMap.computeIfAbsent(player, p -> {
|
||||
ShowModeParameter showModeParameter = new ShowModeParameter();
|
||||
showModeParameter.enableWater();
|
||||
showModeParameter.enableCount();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren