Orebfuscator fully functioning, more effective, more efficient!
Dieser Commit ist enthalten in:
Ursprung
b5b5fb7919
Commit
3d4d83088b
@ -1,4 +1,4 @@
|
|||||||
From 363c2838f5c2179bb6c0ad3cb7da777bd0ba63f6 Mon Sep 17 00:00:00 2001
|
From 1f02c5a6aeba3f32a2a162437d3a43d589f2f96d Mon Sep 17 00:00:00 2001
|
||||||
From: md_5 <md_5@live.com.au>
|
From: md_5 <md_5@live.com.au>
|
||||||
Date: Thu, 16 May 2013 18:51:05 +1000
|
Date: Thu, 16 May 2013 18:51:05 +1000
|
||||||
Subject: [PATCH] Orebfuscator
|
Subject: [PATCH] Orebfuscator
|
||||||
@ -173,10 +173,10 @@ index 67477f4..e5004b3 100644
|
|||||||
}
|
}
|
||||||
diff --git a/src/main/java/org/spigotmc/OrebfuscatorManager.java b/src/main/java/org/spigotmc/OrebfuscatorManager.java
|
diff --git a/src/main/java/org/spigotmc/OrebfuscatorManager.java b/src/main/java/org/spigotmc/OrebfuscatorManager.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..003bc5d
|
index 0000000..2adfb86
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/org/spigotmc/OrebfuscatorManager.java
|
+++ b/src/main/java/org/spigotmc/OrebfuscatorManager.java
|
||||||
@@ -0,0 +1,211 @@
|
@@ -0,0 +1,205 @@
|
||||||
+package org.spigotmc;
|
+package org.spigotmc;
|
||||||
+
|
+
|
||||||
+import gnu.trove.set.TByteSet;
|
+import gnu.trove.set.TByteSet;
|
||||||
@ -360,32 +360,26 @@ index 0000000..003bc5d
|
|||||||
+
|
+
|
||||||
+ private static boolean isLoaded(World world, int x, int y, int z, int radius)
|
+ private static boolean isLoaded(World world, int x, int y, int z, int radius)
|
||||||
+ {
|
+ {
|
||||||
+ if ( radius > 0 && world.isLoaded( x, y, z ) )
|
+ return world.isLoaded( x, y, z )
|
||||||
+ {
|
+ || ( radius > 0
|
||||||
+ return isLoaded( world, x + 1, y, z, radius - 1 )
|
+ && ( isLoaded( world, x + 1, y, z, radius - 1 )
|
||||||
+ || isLoaded( world, x - 1, y, z, radius - 1 )
|
+ || isLoaded( world, x - 1, y, z, radius - 1 )
|
||||||
+ || isLoaded( world, x, y + 1, z, radius - 1 )
|
+ || isLoaded( world, x, y + 1, z, radius - 1 )
|
||||||
+ || isLoaded( world, x, y - 1, z, radius - 1 )
|
+ || isLoaded( world, x, y - 1, z, radius - 1 )
|
||||||
+ || isLoaded( world, x, y, z + 1, radius - 1 )
|
+ || isLoaded( world, x, y, z + 1, radius - 1 )
|
||||||
+ || isLoaded( world, x, y, z - 1, radius - 1 );
|
+ || isLoaded( world, x, y, z - 1, radius - 1 ) ) );
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return false;
|
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ private static boolean hasTransparentBlockAdjacent(World world, int x, int y, int z, int radius)
|
+ private static boolean hasTransparentBlockAdjacent(World world, int x, int y, int z, int radius)
|
||||||
+ {
|
+ {
|
||||||
+ if ( radius > 0 && !Block.l( world.getTypeId( x, y, z ) ) /* isSolidBlock */ )
|
+ return !Block.l( world.getTypeId( x, y, z ) ) /* isSolidBlock */
|
||||||
+ {
|
+ || ( radius > 0
|
||||||
+ return hasTransparentBlockAdjacent( world, x + 1, y, z, radius - 1 )
|
+ && ( hasTransparentBlockAdjacent( world, x + 1, y, z, radius - 1 )
|
||||||
+ || hasTransparentBlockAdjacent( world, x - 1, y, z, radius - 1 )
|
+ || hasTransparentBlockAdjacent( world, x - 1, y, z, radius - 1 )
|
||||||
+ || hasTransparentBlockAdjacent( world, x, y + 1, z, radius - 1 )
|
+ || hasTransparentBlockAdjacent( world, x, y + 1, z, radius - 1 )
|
||||||
+ || hasTransparentBlockAdjacent( world, x, y - 1, z, radius - 1 )
|
+ || hasTransparentBlockAdjacent( world, x, y - 1, z, radius - 1 )
|
||||||
+ || hasTransparentBlockAdjacent( world, x, y, z + 1, radius - 1 )
|
+ || hasTransparentBlockAdjacent( world, x, y, z + 1, radius - 1 )
|
||||||
+ || hasTransparentBlockAdjacent( world, x, y, z - 1, radius - 1 );
|
+ || hasTransparentBlockAdjacent( world, x, y, z - 1, radius - 1 ) ) );
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return false;
|
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
diff --git a/src/main/resources/configurations/bukkit.yml b/src/main/resources/configurations/bukkit.yml
|
diff --git a/src/main/resources/configurations/bukkit.yml b/src/main/resources/configurations/bukkit.yml
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren