Fix error thrown by javac but not the eclipse compiler.

This commit is contained in:
Major-
2014-08-06 02:13:04 +01:00
parent 0b6e0bdc60
commit 7dab24a64d
@@ -120,13 +120,13 @@ public final class BinaryPlayerSaver implements PlayerSaver {
out.writeByte(type.getValue());
switch (type) {
case BOOLEAN:
out.writeByte((boolean) attribute.getValue() ? 1 : 0);
out.writeByte((Boolean) attribute.getValue() ? 1 : 0);
break;
case DOUBLE:
out.writeDouble((double) attribute.getValue());
out.writeDouble((Double) attribute.getValue());
break;
case LONG:
out.writeLong((long) attribute.getValue());
out.writeLong((Long) attribute.getValue());
break;
case STRING:
case SYMBOL: