mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 07:46:08 +00:00
Totally stable optimizations that wont cause any problems at all.
This commit is contained in:
@@ -21,6 +21,7 @@ package com.volmit.iris.util;
|
||||
import com.volmit.iris.Iris;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class InvertedBiomeGrid implements BiomeGrid {
|
||||
private final BiomeGrid grid;
|
||||
@@ -29,12 +30,14 @@ public class InvertedBiomeGrid implements BiomeGrid {
|
||||
this.grid = real;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public Biome getBiome(int arg0, int arg1) {
|
||||
return grid.getBiome(arg0, arg1);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Biome getBiome(int arg0, int arg1, int arg2) {
|
||||
if (!Iris.biome3d) {
|
||||
@@ -46,12 +49,12 @@ public class InvertedBiomeGrid implements BiomeGrid {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void setBiome(int arg0, int arg1, Biome arg2) {
|
||||
public void setBiome(int arg0, int arg1, @NotNull Biome arg2) {
|
||||
grid.setBiome(arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBiome(int arg0, int arg1, int arg2, Biome arg3) {
|
||||
public void setBiome(int arg0, int arg1, int arg2, @NotNull Biome arg3) {
|
||||
if (!Iris.biome3d) {
|
||||
setBiome(arg0, arg2, arg3);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user