3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

Merge pull request #1375 from KennyTV/master

Fix 1.13 clients unable to break infested blocks (#1370)
Dieser Commit ist enthalten in:
Myles 2019-06-24 20:37:08 +01:00 committet von GitHub
Commit b675018acf
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -55,7 +55,8 @@ public class MappingData {
MappingData.class.getClassLoader() MappingData.class.getClassLoader()
.getResourceAsStream("assets/viaversion/data/mapping-lang-1.12-1.13.json") .getResourceAsStream("assets/viaversion/data/mapping-lang-1.12-1.13.json")
), ),
(new TypeToken<Map<String, String>>(){}).getType()); (new TypeToken<Map<String, String>>() {
}).getType());
try { try {
String[] lines; String[] lines;
try (Reader reader = new InputStreamReader(MappingData.class.getClassLoader() try (Reader reader = new InputStreamReader(MappingData.class.getClassLoader()
@ -199,6 +200,14 @@ public class MappingData {
if (Via.getConfig().isSnowCollisionFix()) { if (Via.getConfig().isSnowCollisionFix()) {
oldToNew[1248] = 3416; oldToNew[1248] = 3416;
} }
// Remap infested blocks, as they are instantly breakabale in 1.13+ and can't be broken by those clients on older servers
oldToNew[1552] = 1; // stone
oldToNew[1553] = 14; // cobblestone
oldToNew[1554] = 3983; // stone bricks
oldToNew[1555] = 3984; // mossy stone bricks
oldToNew[1556] = 3985; // cracked stone bricks
oldToNew[1557] = 3986; // chiseled stone bricks
} }
@Override @Override