1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-22 17:37:38 +00:00

Fix some warnings (#235)

Remove some unused code and fix a bunch of warnings
This commit is contained in:
Lignum
2019-06-07 15:35:17 +02:00
committed by SquidDev
parent 00c395f689
commit 7d428030df
16 changed files with 19 additions and 38 deletions

View File

@@ -25,7 +25,6 @@ import net.minecraft.world.World;
import org.apache.logging.log4j.LogManager;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import javax.annotation.Nonnull;
@@ -440,20 +439,6 @@ public class NetworkTest
this.box = (T[]) new Object[size * size * size];
}
public void set( BlockPos pos, T elem )
{
int x = pos.getX(), y = pos.getY(), z = pos.getZ();
if( x >= 0 && x < size && y >= 0 && y < size && z >= 0 && z < size )
{
box[x * size * size + y * size + z] = elem;
}
else
{
throw new IndexOutOfBoundsException( pos.toString() );
}
}
public T get( BlockPos pos )
{
int x = pos.getX(), y = pos.getY(), z = pos.getZ();