2525import org .bukkit .block .Block ;
2626import org .bukkit .entity .Player ;
2727import org .bukkit .potion .PotionEffect ;
28- import org .bukkit .potion .PotionEffectType ;
2928import org .jetbrains .annotations .Nullable ;
3029import plugily .projects .minigamesbox .api .arena .IArenaState ;
3130import plugily .projects .minigamesbox .classic .arena .PluginArena ;
@@ -63,7 +62,7 @@ public class Arena extends PluginArena {
6362 private final ArrayList <Block > placedBlocks = new ArrayList <>();
6463
6564 private List <Cuboid > bridgeCuboid ;
66- private final HashMap <Location , Material > brokenBlocks = new HashMap <>();
65+ private final HashMap <Location , XMaterial > brokenBlocks = new HashMap <>();
6766
6867 private final HashMap <Player , Player > hits = new HashMap <>();
6968 private int resetRound = 0 ;
@@ -350,10 +349,10 @@ public void addBridgeCuboid(Cuboid cuboid) {
350349 this .bridgeCuboid .add (cuboid );
351350 }
352351
353- public HashMap <Location , Material > getBrokenBlocks () {
352+ public HashMap <Location , XMaterial > getBrokenBlocks () {
354353 return brokenBlocks ;
355354 }
356- public void addBrokenBlock (Location location , Material material ) {
355+ public void addBrokenBlock (Location location , XMaterial material ) {
357356 this .brokenBlocks .put (location , material );
358357 }
359358
@@ -365,7 +364,7 @@ public void resetPlacedBlocks() {
365364 }
366365
367366 public void resetBrokenBlocks () {
368- brokenBlocks .forEach ((location , material ) -> XBlock .setType (location .getBlock (), XMaterial . matchXMaterial ( material ) ));
367+ brokenBlocks .forEach ((location , material ) -> XBlock .setType (location .getBlock (), material ));
369368 brokenBlocks .clear ();
370369 }
371370
0 commit comments