Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-07 21:32:52 +02:00
Fix mushrooms blocks on 1.12.2 and below (#351)
Dieser Commit ist enthalten in:
Ursprung
0812204f11
Commit
7a5e57e1a8
@ -106,6 +106,25 @@ public class BackwardsMappings extends nl.matsv.viabackwards.api.data.BackwardsM
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getNewBlockStateId(int id) {
|
||||||
|
int mappedId = super.getNewBlockStateId(id);
|
||||||
|
|
||||||
|
// https://github.com/ViaVersion/ViaBackwards/issues/290
|
||||||
|
switch (mappedId) {
|
||||||
|
case 1595:
|
||||||
|
case 1596:
|
||||||
|
case 1597:
|
||||||
|
return 1584; // brown mushroom block
|
||||||
|
case 1611:
|
||||||
|
case 1612:
|
||||||
|
case 1613:
|
||||||
|
return 1600; // red mushroom block
|
||||||
|
default:
|
||||||
|
return mappedId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int checkValidity(int id, int mappedId, String type) {
|
protected int checkValidity(int id, int mappedId, String type) {
|
||||||
// Don't warn for missing ids here
|
// Don't warn for missing ids here
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren