Fix for random blocks with ID's > 127
parent
ea85592d96
commit
e9b8f9689e
|
@ -184,10 +184,10 @@ public class OrebfuscatorConfig {
|
|||
return retval.length() > 1 ? retval.substring(0, retval.length() - 2) : retval;
|
||||
}
|
||||
|
||||
public static byte getRandomBlock(int index, boolean alternate, World.Environment environment) {
|
||||
public static int getRandomBlock(int index, boolean alternate, World.Environment environment) {
|
||||
if (environment == World.Environment.NETHER)
|
||||
return (byte) (int) (NetherRandomBlocks[index]);
|
||||
return (byte) (int) (alternate ? RandomBlocks2[index] : RandomBlocks[index]);
|
||||
return (int) (NetherRandomBlocks[index]);
|
||||
return (int) (alternate ? RandomBlocks2[index] : RandomBlocks[index]);
|
||||
}
|
||||
|
||||
public static Integer[] getRandomBlocks(boolean alternate, World.Environment environment) {
|
||||
|
|
Loading…
Reference in New Issue