mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-12 10:45:50 -07:00
Infinite loops are like infinite loops which are like infinite loops which *bang*
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user