|
@@ -47,7 +47,7 @@ public class Events implements Listener {
|
|
if (plugin.getDisabledWorlds().contains(event.getBlock().getLocation().getWorld().getName())) {
|
|
if (plugin.getDisabledWorlds().contains(event.getBlock().getLocation().getWorld().getName())) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
Type fromType = this.getType(event.getBlock());
|
|
Type fromType = this.getType(event.getBlock());
|
|
|
|
|
|
if (fromType != null && event.getFace() != BlockFace.DOWN) {
|
|
if (fromType != null && event.getFace() != BlockFace.DOWN) {
|
|
@@ -62,7 +62,7 @@ public class Events implements Listener {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if ((toType != null || b.getType() == Material.AIR) && (generatesCobble(fromType, b))) {
|
|
if ((toType != null || b.getType() == Material.AIR) && (generatesCobble(fromType, b))) {
|
|
OfflinePlayer p = plugin.getOwner(b.getLocation());
|
|
OfflinePlayer p = plugin.getOwner(b.getLocation());
|
|
if (p == null)
|
|
if (p == null)
|
|
@@ -154,13 +154,13 @@ public class Events implements Listener {
|
|
if(level.getLevel() == 0) {
|
|
if(level.getLevel() == 0) {
|
|
if(level.getMaterial() == Material.WATER) {
|
|
if(level.getMaterial() == Material.WATER) {
|
|
return Type.WATER_STAT;
|
|
return Type.WATER_STAT;
|
|
- }else {
|
|
|
|
|
|
+ }else if(level.getMaterial() == Material.LAVA) {
|
|
return Type.LAVA_STAT;
|
|
return Type.LAVA_STAT;
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
if(level.getMaterial() == Material.WATER) {
|
|
if(level.getMaterial() == Material.WATER) {
|
|
return Type.WATER;
|
|
return Type.WATER;
|
|
- }else {
|
|
|
|
|
|
+ }else if(level.getMaterial() == Material.LAVA) {
|
|
return Type.LAVA;
|
|
return Type.LAVA;
|
|
}
|
|
}
|
|
}
|
|
}
|