Make it 1.8 compatible

This commit is contained in:
Lixfel
2025-04-05 18:02:48 +02:00
parent a6c46d0270
commit 812e78d277
4 changed files with 13 additions and 4 deletions
@@ -25,6 +25,12 @@ import java.util.Collections;
import java.util.Set;
public class BlockIds8 implements BlockIds {
@Override
public int getCombinedId(Object iBlockData) {
int id = (int) getCombinedId.invoke(null, iBlockData); // blockState << 12 | blockId
return (id & 4095) | (id >> 12);
}
@Override
@SuppressWarnings("deprecation")
public int materialToId(Material material) {