Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-13 22:50:06 +01:00
Updated for SpoutAPI Material changes
Dieser Commit ist enthalten in:
Ursprung
4890c1ef9c
Commit
9c3634d93d
@ -49,7 +49,7 @@ public class SpoutPlayer extends LocalPlayer {
|
|||||||
@Override
|
@Override
|
||||||
public int getItemInHand() {
|
public int getItemInHand() {
|
||||||
ItemStack itemStack = null;//player.getItemInHand();
|
ItemStack itemStack = null;//player.getItemInHand();
|
||||||
return itemStack != null ? itemStack.getMaterial().getRawId() : 0;
|
return itemStack != null ? itemStack.getMaterial().getId() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -98,7 +98,7 @@ public class SpoutPlayerBlockBag extends BlockBag {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bukkitItem.getMaterial().getRawId() != id) {
|
if (bukkitItem.getMaterial().getId() != id) {
|
||||||
// Type id doesn't fit
|
// Type id doesn't fit
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -164,7 +164,7 @@ public class SpoutPlayerBlockBag extends BlockBag {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bukkitItem.getMaterial().getRawId() != id) {
|
if (bukkitItem.getMaterial().getId() != id) {
|
||||||
// Type id doesn't fit
|
// Type id doesn't fit
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ public class SpoutServerInterface extends ServerInterface {
|
|||||||
@Override
|
@Override
|
||||||
public int resolveItem(String name) {
|
public int resolveItem(String name) {
|
||||||
Material mat = MaterialData.getMaterial(name);
|
Material mat = MaterialData.getMaterial(name);
|
||||||
return mat == null ? 0 : mat.getRawId();
|
return mat == null ? 0 : mat.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren