Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Skulls don't have 'Rot'; Painting names
Skulls on walls don't always have a 'Rot' tag if it's rotation is 0. 'DonkeyKong', 'SkullAndRoses' and 'BurningSkull' weren't displaying.
Dieser Commit ist enthalten in:
Ursprung
666779b012
Commit
3016e774ff
@ -28,14 +28,14 @@ public class PaintingProvider implements Provider {
|
||||
add("bust");
|
||||
add("stage");
|
||||
add("void");
|
||||
add("skull_and_roses");
|
||||
add("skullandroses");
|
||||
add("wither");
|
||||
add("fighters");
|
||||
add("pointer");
|
||||
add("pigscene");
|
||||
add("burning_skull");
|
||||
add("burningskull");
|
||||
add("skeleton");
|
||||
add("donkey_kong");
|
||||
add("donkeykong");
|
||||
}
|
||||
|
||||
private void add(String motive) {
|
||||
|
@ -23,7 +23,10 @@ public class SkullHandler implements BlockEntityProvider.BlockEntityHandler {
|
||||
int id = storage.get(position).getOriginal();
|
||||
|
||||
if (id >= SKULL_WALL_START && id <= SKULL_END) {
|
||||
id += (byte) tag.get("SkullType").getValue() * 20 + (byte) tag.get("Rot").getValue();
|
||||
id += (byte) tag.get("SkullType").getValue() * 20;
|
||||
if (tag.contains("Rot")) {
|
||||
id += (byte) tag.get("Rot").getValue();
|
||||
}
|
||||
} else {
|
||||
System.out.println("Why does this block have the skull block entity? :(" + tag);
|
||||
return -1;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren