From f229f88d63771037eb048b135c6e3077e4099a7a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 6 Sep 2019 18:31:40 +0200 Subject: [PATCH] Adding Concrete powder to replaced blocks --- src/de/steamwar/fightsystem/fight/FightTeam.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/steamwar/fightsystem/fight/FightTeam.java b/src/de/steamwar/fightsystem/fight/FightTeam.java index 43f81f6..528e4fd 100644 --- a/src/de/steamwar/fightsystem/fight/FightTeam.java +++ b/src/de/steamwar/fightsystem/fight/FightTeam.java @@ -45,12 +45,15 @@ public class FightTeam { private static final BaseBlock GLASS_PANE = new BaseBlock(Material.STAINED_GLASS_PANE.getId(), COLOR_TO_REPLACE); @SuppressWarnings("deprecation") private static final BaseBlock CONCRETE = new BaseBlock(Material.CONCRETE.getId(), COLOR_TO_REPLACE); + @SuppressWarnings("deprecation") + private static final BaseBlock CONCRETE_POWDER = new BaseBlock(Material.CONCRETE_POWDER.getId(), COLOR_TO_REPLACE); private static final Set WOOL_SET = Collections.singleton(WOOL); private static final Set CONCRETE_SET = Collections.singleton(CONCRETE); private static final Set CLAY_SET = Collections.singleton(CLAY); private static final Set GLASS_SET = Collections.singleton(GLASS); private static final Set GLASS_PANE_SET = Collections.singleton(GLASS_PANE); + private static final Set CONCRETE_POWDER_SET = Collections.singleton(CONCRETE_POWDER); private FightPlayer leader; private final Set players = new HashSet<>(); @@ -261,6 +264,7 @@ public class FightTeam { try { e.replaceBlocks(region, WOOL_SET, new BaseBlock(WOOL.getId(), c.getWoolData())); e.replaceBlocks(region, CONCRETE_SET, new BaseBlock(CONCRETE.getId(), c.getWoolData())); + e.replaceBlocks(region, CONCRETE_POWDER_SET, new BaseBlock(CONCRETE.getId(), c.getWoolData())); e.replaceBlocks(region, CLAY_SET, new BaseBlock(CLAY.getId(), c.getWoolData())); e.replaceBlocks(region, GLASS_SET, new BaseBlock(GLASS.getId(), c.getWoolData())); e.replaceBlocks(region, GLASS_PANE_SET, new BaseBlock(GLASS_PANE.getId(), c.getWoolData()));