[Forge] Make DefaultBlockParser behave more like vanilla.

This commit is contained in:
Kenzie Togami
2016-06-17 16:59:41 -07:00
parent 5a42a8ddb4
commit e42107557e
2 changed files with 32 additions and 7 deletions

View File

@ -69,7 +69,7 @@ class ForgePlatform extends AbstractPlatform implements MultiUserPlatform {
int index = name.indexOf(':');
if (index != -1 && index != 0 && index != name.length() - 1) {
if (index != 0 && index != name.length() - 1) {
Block block = Block.getBlockFromName(name);
if (block != null) {
return Block.getIdFromBlock(block);
@ -87,7 +87,7 @@ class ForgePlatform extends AbstractPlatform implements MultiUserPlatform {
}
if (item.getUnlocalizedName().equalsIgnoreCase(name)) return Item.getIdFromItem(item);
}
return 0;
return -1;
}
@Override