Possibly fixed issues with Pam's Harvestcraft

This commit is contained in:
Sollace 2019-01-29 12:33:11 +02:00
parent 9cf95262e7
commit 435dc1c02d
2 changed files with 4 additions and 3 deletions

View file

@ -4,8 +4,6 @@ import java.lang.reflect.Field;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import net.minecraft.util.registry.RegistryNamespaced; import net.minecraft.util.registry.RegistryNamespaced;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.ModContainer;
import net.minecraftforge.registries.ILockableRegistry; import net.minecraftforge.registries.ILockableRegistry;
public final class RegistryLockSpinner { public final class RegistryLockSpinner {

View file

@ -72,7 +72,10 @@ public class ItemApple extends ItemFood {
public ItemApple(String domain, String name) { public ItemApple(String domain, String name) {
super(4, 3, false); super(4, 3, false);
setTranslationKey(name); setTranslationKey(name);
setRegistryName(domain, name);
if (!"minecraft".contentEquals(domain)) {
setRegistryName(domain, name);
}
} }
public ItemApple setSubTypes(String... types) { public ItemApple setSubTypes(String... types) {