Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-10-05 01:41:05 +02:00
Remove the instanceof check since it's no longer required.
Dieser Commit ist enthalten in:
Ursprung
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());
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren