Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around. By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -34,8 +34,8 @@ public class CraftBlockState implements BlockState {
|
||||
createData(block.getData());
|
||||
}
|
||||
|
||||
public static BlockState getBlockState(net.minecraft.server.World world, int x, int y, int z) {
|
||||
return new CraftBlockState(((WorldServer) world).getWorld().getBlockAt(x, y, z));
|
||||
public static CraftBlockState getBlockState(net.minecraft.server.World world, int x, int y, int z) {
|
||||
return new CraftBlockState(world.getWorld().getBlockAt(x, y, z));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -63,7 +63,7 @@ public class CraftNoteBlock extends CraftBlockState implements NoteBlock {
|
||||
|
||||
synchronized (block) {
|
||||
if (block.getType() == Material.NOTE_BLOCK) {
|
||||
world.getHandle().d(getX(), getY(), getZ(), instrument, note);
|
||||
world.getHandle().playNote(getX(), getY(), getZ(), instrument, note);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@@ -76,7 +76,7 @@ public class CraftNoteBlock extends CraftBlockState implements NoteBlock {
|
||||
|
||||
synchronized (block) {
|
||||
if (block.getType() == Material.NOTE_BLOCK) {
|
||||
world.getHandle().d(getX(), getY(), getZ(), instrument.getType(), note.getId());
|
||||
world.getHandle().playNote(getX(), getY(), getZ(), instrument.getType(), note.getId());
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user