Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3public class BlockRegister {
4
5 private static byte[] a = new byte[256];
6
7 public BlockRegister() {
8 }
9
10 public static void a(byte[] abyte) {
11 for (int i = 0; i < abyte.length; ++i) {
12 abyte[i] = a[abyte[i] & 255];
13 }
14 }
15
16 static {
17 try {
18 for (int i = 0; i < 256; ++i) {
19 byte b0 = (byte) i;
20
21 if (b0 != 0 && Block.byId[b0 & 255] == null) {
22 b0 = 0;
23 }
24
25 a[i] = b0;
26 }
27 } catch (Exception exception) {
28 exception.printStackTrace();
29 }
30 }
31}