forked from SteamWar/SteamWar
Hotfix ShieldPrinting pasting AIR, it should not
This commit is contained in:
+5
-2
@@ -170,13 +170,16 @@ public class ShieldPrinting implements Listener {
|
||||
}
|
||||
|
||||
BlockDataConfiguration[] stateConfigurations = stateConfiguration.get(entry.getValue().getMaterial());
|
||||
BlockData copied = entry.getValue();
|
||||
if (stateConfigurations == null) {
|
||||
block.setBlockData(entry.getValue(), false);
|
||||
if (!copied.getMaterial().isAir()) {
|
||||
block.setBlockData(copied, false);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
BlockData worldOriginal = block.getBlockData();
|
||||
BlockData copied = entry.getValue().clone();
|
||||
copied = copied.clone();
|
||||
if (copied.getMaterial().isAir()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user