geforkt von Mirrors/Paper
#1479: Use custom #isBlock method in legacy init instead of the one in Material, since it relies on legacy being init
By: DerFrZocker <derrieple@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
c98b18d4a2
Commit
52e03b47a2
@ -331,7 +331,7 @@ public final class CraftLegacy {
|
||||
}
|
||||
|
||||
// Handle blocks
|
||||
if (material.isBlock()) {
|
||||
if (isBlock(material)) { // Use custom method instead of Material#isBlock since it relies on this being already run
|
||||
for (byte data = 0; data < 16; data++) {
|
||||
MaterialData matData = new MaterialData(material, data);
|
||||
Dynamic blockTag = DataConverterFlattenData.getTag(material.getId() << 4 | data);
|
||||
@ -438,6 +438,12 @@ public final class CraftLegacy {
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isBlock(Material material) {
|
||||
// From Material#isBlock before the rewrite to ItemType / BlockType
|
||||
// Git hash: 42f6cdf4c5dcdd52a27543403dcd17fb60311621
|
||||
return 0 <= material.getId() && material.getId() < 256;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.err.println("");
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren