Browse Source

Removing the snowball projectile after pasting the Shield schematic

RedstoneFuture 1 week ago
parent
commit
22fe31b6ab

+ 1 - 0
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/schematics/objects/Shield.java

@@ -30,6 +30,7 @@ public class Shield extends SchematicObject {
             Vector pastePos = new Vector(loc.getX(), loc.getY(), loc.getZ());
             
             MissileWars.getInstance().getSchematicPaster().pasteSchematic(getSchematic(), pastePos, 0, loc.getWorld());
+            ball.remove();
         } catch (Exception e) {
             Logger.ERROR.log("Could not load " + getDisplayName());
             e.printStackTrace();