Remove the instanceof check since it's no longer required.

This commit is contained in:
Matsv 2016-11-19 15:57:08 +01:00
parent 6cf94fce66
commit 4e5a12a514
No known key found for this signature in database
GPG Key ID: 97CEC2A2EA31350F

View File

@ -82,11 +82,7 @@ public class Chunk1_10Type extends PartialType<Chunk, ClientWorld> {
}
@Override
public void write(ByteBuf output, ClientWorld world, Chunk input) throws Exception {
if (!(input instanceof Chunk1_10))
throw new Exception("Tried to send the wrong chunk type from 1.9.3-4 chunk: " + input.getClass());
Chunk1_10 chunk = (Chunk1_10) input;
public void write(ByteBuf output, ClientWorld world, Chunk chunk) throws Exception {
output.writeInt(chunk.getX());
output.writeInt(chunk.getZ());