Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 17:10:13 +01:00
Applied suggestions for PR
Co-authored-by: Nassim <jahnke.nassim@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
0070485d2e
Commit
cae5122d04
@ -112,16 +112,8 @@ public class MetadataRewriter1_9To1_8 extends MetadataRewriter {
|
||||
metadata.setValue(value);
|
||||
break;
|
||||
case BlockID:
|
||||
// convert from int, short, byte
|
||||
if (metaIndex.getOldType() == MetaType1_8.Byte) {
|
||||
metadata.setValue(((Byte) value).intValue());
|
||||
}
|
||||
if (metaIndex.getOldType() == MetaType1_8.Short) {
|
||||
metadata.setValue(((Short) value).intValue());
|
||||
}
|
||||
if (metaIndex.getOldType() == MetaType1_8.Int) {
|
||||
metadata.setValue(value);
|
||||
}
|
||||
// Convert from int, short, byte
|
||||
metadata.setValue(((Number) value).intValue());
|
||||
break;
|
||||
default:
|
||||
metadatas.remove(metadata);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren