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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user