Integer cannot be cast to Short :(

This commit is contained in:
md_5 2013-06-22 13:59:56 +10:00
parent a18171d81c
commit a79c1fc577

View file

@ -1,4 +1,4 @@
From f9b52ad834a62522ab547a804d3039c43ed2a9f8 Mon Sep 17 00:00:00 2001
From 8a73fd5e8b75b6438a2cc7fbcd6d69c69b1f7264 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Thu, 16 May 2013 18:51:05 +1000
Subject: [PATCH] Orebfuscator
@ -108,7 +108,7 @@ index 1243d1d..9ec8997 100644
diff --git a/src/main/java/org/spigotmc/AntiXray.java b/src/main/java/org/spigotmc/AntiXray.java
new file mode 100644
index 0000000..74ee741
index 0000000..c29b789
--- /dev/null
+++ b/src/main/java/org/spigotmc/AntiXray.java
@@ -0,0 +1,203 @@
@ -133,7 +133,7 @@ index 0000000..74ee741
+ public AntiXray(SpigotWorldConfig config)
+ {
+ // Set all listed blocks as true to be obfuscated
+ for ( short id : config.blocks )
+ for ( int id : config.blocks )
+ {
+ obfuscateBlocks[id] = true;
+ }
@ -316,7 +316,7 @@ index 0000000..74ee741
+ }
+}
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
index d7e9794..660c660 100644
index d7e9794..3525e9b 100644
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
@@ -1,5 +1,6 @@
@ -333,7 +333,7 @@ index d7e9794..660c660 100644
+
+ public boolean antiXray = true;
+ public int engineMode = 1;
+ public List<Short> blocks = Arrays.asList( new Short[]
+ public List<Integer> blocks = Arrays.asList( new Integer[]
+ {
+ 1, 5, 14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130
+ } );