mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-01 15:36:45 +00:00
changes
This commit is contained in:
parent
a0d91dbc74
commit
578070dffe
@ -33,6 +33,7 @@ import com.volmit.iris.util.nbt.mca.palette.MCAPaletteAccess;
|
||||
import com.volmit.iris.util.nbt.tag.CompoundTag;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.entity.Dolphin;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
@ -48,7 +48,7 @@ public class IrisMerger {
|
||||
private boolean useMemoryWorld = false;
|
||||
|
||||
@Desc("Allows to gen chunks on the mergers world")
|
||||
private boolean allowGenChunks = false;
|
||||
private boolean allowGenChunks = true;
|
||||
|
||||
@Desc("Uses a world instead of a generator")
|
||||
private String world;
|
||||
|
@ -572,12 +572,18 @@ public class NMSBinding implements INMSBinding {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Entity spawnEntity(Location location, org.bukkit.entity.EntityType type, CreatureSpawnEvent.SpawnReason reason) {
|
||||
return ((CraftWorld) location.getWorld()).spawn(location, type.getEntityClass(), null, reason);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(World world, int x, int y, int z, BlockData data, int flag, int updateDepth) {
|
||||
var level = ((CraftWorld) world).getHandle();
|
||||
var blockData = ((CraftBlockData) data).getState();
|
||||
return level.setBlock(new BlockPos(x, y, z), blockData, flag, updateDepth);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getBiomeColor(Location location, BiomeColor type) {
|
||||
LevelReader reader = ((CraftWorld) location.getWorld()).getHandle();
|
||||
|
@ -575,6 +575,12 @@ public class NMSBinding implements INMSBinding {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(World world, int x, int y, int z, BlockData data, int flag, int updateDepth) {
|
||||
var level = ((CraftWorld) world).getHandle();
|
||||
var blockData = ((CraftBlockData) data).getState();
|
||||
return level.setBlock(new BlockPos(x, y, z), blockData, flag, updateDepth);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity spawnEntity(Location location, org.bukkit.entity.EntityType type, CreatureSpawnEvent.SpawnReason reason) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user