mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Applied suggestions for PR
Co-authored-by: Nassim <jahnke.nassim@gmail.com>
This commit is contained in:
parent
0070485d2e
commit
cae5122d04
@ -112,16 +112,8 @@ public class MetadataRewriter1_9To1_8 extends MetadataRewriter {
|
|||||||
metadata.setValue(value);
|
metadata.setValue(value);
|
||||||
break;
|
break;
|
||||||
case BlockID:
|
case BlockID:
|
||||||
// convert from int, short, byte
|
// Convert from int, short, byte
|
||||||
if (metaIndex.getOldType() == MetaType1_8.Byte) {
|
metadata.setValue(((Number) value).intValue());
|
||||||
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);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
metadatas.remove(metadata);
|
metadatas.remove(metadata);
|
||||||
|
Loading…
Reference in New Issue
Block a user