Skip to content

Commit

Permalink
Changed "#endercrystal" to now log as "#ender_crystal"
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed May 27, 2024
1 parent cfb53f7 commit ca59ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.coreprotect.listener.block;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;

import org.bukkit.Location;
import org.bukkit.Material;
Expand Down Expand Up @@ -37,9 +37,7 @@ public static void processBlockExplode(String user, World world, List<Block> blo
}

if (Config.getConfig(world).NATURAL_BREAK) {
Iterator<Map.Entry<Location, Block>> it = new HashMap<>(blockMap).entrySet().iterator();
while (it.hasNext()) {
Map.Entry<Location, Block> data = it.next();
for (Entry<Location, Block> data : new HashMap<>(blockMap).entrySet()) {
Block block = data.getValue();
int x = block.getX();
int y = block.getY();
Expand Down Expand Up @@ -158,7 +156,7 @@ protected void onBlockExplode(BlockExplodeEvent event) {
user = "#tnt";
}
else if (user.contains("end_crystal")) {
user = "#endercrystal";
user = "#ender_crystal";
}
if (!user.startsWith("#")) {
user = "#explosion";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ else if (entity instanceof Wither || entity instanceof WitherSkull) {
user = "#wither";
}
else if (entity instanceof EnderCrystal) {
user = "#endercrystal";
user = "#ender_crystal";
}

boolean log = false;
Expand Down

0 comments on commit ca59ff2

Please sign in to comment.