mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Updated for SpoutAPI Material changes
This commit is contained in:
parent
4890c1ef9c
commit
9c3634d93d
@ -49,7 +49,7 @@ public SpoutPlayer(WorldEditPlugin plugin, ServerInterface server, Player player
|
||||
@Override
|
||||
public int getItemInHand() {
|
||||
ItemStack itemStack = null;//player.getItemInHand();
|
||||
return itemStack != null ? itemStack.getMaterial().getRawId() : 0;
|
||||
return itemStack != null ? itemStack.getMaterial().getId() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -98,7 +98,7 @@ public void fetchItem(BaseItem item) throws BlockBagException {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (bukkitItem.getMaterial().getRawId() != id) {
|
||||
if (bukkitItem.getMaterial().getId() != id) {
|
||||
// Type id doesn't fit
|
||||
continue;
|
||||
}
|
||||
@ -164,7 +164,7 @@ public void storeItem(BaseItem item) throws BlockBagException {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (bukkitItem.getMaterial().getRawId() != id) {
|
||||
if (bukkitItem.getMaterial().getId() != id) {
|
||||
// Type id doesn't fit
|
||||
continue;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public SpoutServerInterface(WorldEditPlugin plugin, Game game) {
|
||||
@Override
|
||||
public int resolveItem(String name) {
|
||||
Material mat = MaterialData.getMaterial(name);
|
||||
return mat == null ? 0 : mat.getRawId();
|
||||
return mat == null ? 0 : mat.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user