mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-27 17:37:34 +01:00
Changed "#endercrystal" to now log as "#ender_crystal"
This commit is contained in:
parent
cfb53f766e
commit
ca59ff25df
@ -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;
|
||||
@ -37,9 +37,7 @@ public final class BlockExplodeListener extends Queue implements Listener {
|
||||
}
|
||||
|
||||
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();
|
||||
@ -158,7 +156,7 @@ public final class BlockExplodeListener extends Queue implements Listener {
|
||||
user = "#tnt";
|
||||
}
|
||||
else if (user.contains("end_crystal")) {
|
||||
user = "#endercrystal";
|
||||
user = "#ender_crystal";
|
||||
}
|
||||
if (!user.startsWith("#")) {
|
||||
user = "#explosion";
|
||||
|
@ -46,7 +46,7 @@ public final class EntityExplodeListener extends Queue implements Listener {
|
||||
user = "#wither";
|
||||
}
|
||||
else if (entity instanceof EnderCrystal) {
|
||||
user = "#endercrystal";
|
||||
user = "#ender_crystal";
|
||||
}
|
||||
|
||||
boolean log = false;
|
||||
|
Loading…
Reference in New Issue
Block a user