3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Change Sun's NotImplementedException to UnsupportedOperationException

Dieser Commit ist enthalten in:
Matsv 2018-01-06 15:29:34 +01:00
Ursprung 012aac97ee
Commit 195b89f24c
2 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -3,7 +3,6 @@ package us.myles.ViaVersion.protocols.protocol1_9_3to1_9_1_2.chunks;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection; import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection;
import us.myles.ViaVersion.api.minecraft.chunks.NibbleArray; import us.myles.ViaVersion.api.minecraft.chunks.NibbleArray;
import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.api.type.Type;
@ -48,7 +47,7 @@ public class ChunkSection1_9_1_2 implements ChunkSection {
@Override @Override
public void setFlatBlock(int x, int y, int z, int type) { public void setFlatBlock(int x, int y, int z, int type) {
throw new NotImplementedException(); throw new UnsupportedOperationException();
} }
public int getBlockId(int x, int y, int z) { public int getBlockId(int x, int y, int z) {

Datei anzeigen

@ -3,7 +3,6 @@ package us.myles.ViaVersion.protocols.protocol1_9to1_8.chunks;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection; import us.myles.ViaVersion.api.minecraft.chunks.ChunkSection;
import us.myles.ViaVersion.api.minecraft.chunks.NibbleArray; import us.myles.ViaVersion.api.minecraft.chunks.NibbleArray;
import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.api.type.Type;
@ -49,7 +48,7 @@ public class ChunkSection1_9to1_8 implements ChunkSection {
@Override @Override
public void setFlatBlock(int x, int y, int z, int type) { public void setFlatBlock(int x, int y, int z, int type) {
throw new NotImplementedException(); throw new UnsupportedOperationException();
} }
public int getBlockId(int x, int y, int z) { public int getBlockId(int x, int y, int z) {