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

Generate sound changes for 18w15a

Dieser Commit ist enthalten in:
Matsv 2018-04-13 09:55:49 +02:00
Ursprung c61d5d480e
Commit 7d5451558d

Datei anzeigen

@ -450,44 +450,47 @@ public class ProtocolSnapshotTo1_12_2 extends Protocol {
providers.register(PaintingProvider.class, new PaintingProvider()); providers.register(PaintingProvider.class, new PaintingProvider());
} }
// Generated with PAaaS
private int getNewSoundID(final int oldID) { private int getNewSoundID(final int oldID) {
int newID = oldID; int newId = oldID;
if (oldID >= 1) if (oldID >= 1)
newID += 6; // ambient.underwater... newId += 6;
if (oldID >= 10) if (oldID >= 10)
newID += 5; newId += 5;
if (oldID >= 86) if (oldID >= 86)
newID++; newId += 1;
if (oldID >= 166) if (oldID >= 166)
newID += 4; newId += 4;
if (oldID >= 174)
newId += 10;
if (oldID >= 179) if (oldID >= 179)
newID += 9; newId += 9;
if (oldID >= 226) if (oldID >= 226)
newID++; newId += 1;
if (oldID >= 373)
newID++;
if (oldID >= 380)
newID += 7;
if (oldID >= 385)
newID += 4;
if (oldID >= 352) if (oldID >= 352)
newID += 5; newId += 5;
if (oldID >= 373)
newId += 1;
if (oldID >= 380)
newId += 7;
if (oldID >= 385)
newId += 4;
if (oldID >= 438) if (oldID >= 438)
newID++; newId += 1;
if (oldID >= 443) if (oldID >= 443)
newID += 16; newId += 16;
if (oldID >= 484) if (oldID >= 484)
newID++; newId += 1;
if (oldID >= 485) if (oldID >= 485)
newID++; newId += 1;
if (oldID >= 508) if (oldID >= 508)
newID += 2; newId += 2;
if (oldID >= 512) if (oldID >= 513)
newID++; newId += 1;
if (oldID >= 514) if (oldID >= 515)
newID++; newId += 1;
if (oldID >= 524) if (oldID >= 524)
newID += 8; newId += 8;
return newID; return newId;
} }
} }