geforkt von Mirrors/Paper
Fixed NPE in ItemStack. Thanks jascotty2!
By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
0f21027498
Commit
5fc8f4f576
@ -122,8 +122,9 @@ public class ItemStack implements ConfigurationSerializable {
|
||||
* @return MaterialData for this item
|
||||
*/
|
||||
public MaterialData getData() {
|
||||
if (Material.getMaterial(getTypeId()).getData() != null) {
|
||||
data = Material.getMaterial(getTypeId()).getNewData((byte) this.durability);
|
||||
Material mat = Material.getMaterial(getTypeId());
|
||||
if (mat != null && mat.getData() != null) {
|
||||
data = mat.getNewData((byte) this.durability);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren