mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Infinite loops are like infinite loops which are like infinite loops which *bang*
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
800a8d089b
commit
14ed38cc63
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ public class ItemStack {
|
|||
public void setTypeID(int type) {
|
||||
this.type = type;
|
||||
|
||||
Material mat = getType();
|
||||
Material mat = Material.getMaterial(type);
|
||||
|
||||
if (mat == null) {
|
||||
data = new MaterialData(type, (byte)0);
|
||||
|
|
Loading…
Reference in a new issue