Fix ItemType.getBlockType

This commit is contained in:
Jesse Boyd 2019-04-23 16:16:26 +10:00
parent 290f047f6a
commit 208929c378
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -94,14 +94,14 @@ public class ItemType implements RegistryItem {
*/
@Nullable
public BlockType getBlockType() {
return this.blockType;
}
public void setBlockType(BlockType blockType) {
if (!initBlockType) {
initBlockType = true;
this.blockType = BlockTypes.get(this.id);
}
return this.blockType;
}
public void setBlockType(BlockType blockType) {
this.blockType = blockType;
}