|
48 | 48 | @SuppressWarnings("unused") |
49 | 49 | public class BlockEventListener117 implements Listener { |
50 | 50 |
|
51 | | - private static final Set<Material> COPPER_OXIDIZING = Set.of( |
52 | | - Material.COPPER_BLOCK, |
53 | | - Material.EXPOSED_COPPER, |
54 | | - Material.WEATHERED_COPPER, |
55 | | - Material.OXIDIZED_COPPER, |
56 | | - Material.CUT_COPPER, |
57 | | - Material.EXPOSED_CUT_COPPER, |
58 | | - Material.WEATHERED_CUT_COPPER, |
59 | | - Material.OXIDIZED_CUT_COPPER, |
60 | | - Material.CUT_COPPER_STAIRS, |
61 | | - Material.EXPOSED_CUT_COPPER_STAIRS, |
62 | | - Material.WEATHERED_CUT_COPPER_STAIRS, |
63 | | - Material.OXIDIZED_CUT_COPPER_STAIRS, |
64 | | - Material.CUT_COPPER_SLAB, |
65 | | - Material.EXPOSED_CUT_COPPER_SLAB, |
66 | | - Material.WEATHERED_CUT_COPPER_SLAB, |
67 | | - Material.OXIDIZED_CUT_COPPER_SLAB |
68 | | - ); |
69 | | - |
70 | 51 | @Inject |
71 | 52 | public BlockEventListener117() { |
72 | 53 | } |
@@ -184,7 +165,7 @@ public void onBlockForm(BlockFormEvent event) { |
184 | 165 | if (plot == null) { |
185 | 166 | return; |
186 | 167 | } |
187 | | - if (COPPER_OXIDIZING.contains(event.getNewState().getType())) { |
| 168 | + if (event.getNewState().getType().name().contains("COPPER")) { |
188 | 169 | if (!plot.getFlag(CopperOxideFlag.class)) { |
189 | 170 | plot.debug("Copper could not oxide because copper-oxide = false"); |
190 | 171 | event.setCancelled(true); |
|
0 commit comments