mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Fix 1.13 clients unable to break infested blocks (#1370)
This commit is contained in:
parent
318db58be1
commit
662bae45b7
@ -55,7 +55,8 @@ public class MappingData {
|
||||
MappingData.class.getClassLoader()
|
||||
.getResourceAsStream("assets/viaversion/data/mapping-lang-1.12-1.13.json")
|
||||
),
|
||||
(new TypeToken<Map<String, String>>(){}).getType());
|
||||
(new TypeToken<Map<String, String>>() {
|
||||
}).getType());
|
||||
try {
|
||||
String[] lines;
|
||||
try (Reader reader = new InputStreamReader(MappingData.class.getClassLoader()
|
||||
@ -199,6 +200,14 @@ public class MappingData {
|
||||
if (Via.getConfig().isSnowCollisionFix()) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user