Explorar el Código

Fixed cauldrons acting as lava

MasterCake hace 4 años
padre
commit
d03b9e696f
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. 1 1
      pom.xml
  2. 4 4
      src/xyz/spaceio/customoregen/Events.java

+ 1 - 1
pom.xml

@@ -4,7 +4,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>xyz.spaceio</groupId>
 	<artifactId>CustomOreGen</artifactId>
-	<version>1.3.26-SNAPSHOT</version>
+	<version>1.3.27-SNAPSHOT</version>
 	<repositories>
 		<!-- Spigot repository -->
 		<repository>

+ 4 - 4
src/xyz/spaceio/customoregen/Events.java

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