mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-01-02 18:48:06 +01:00
Remove the instanceof check since it's no longer required.
This commit is contained in:
parent
6cf94fce66
commit
4e5a12a514
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user