mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Possibly fixed issues with Pam's Harvestcraft
This commit is contained in:
parent
9cf95262e7
commit
435dc1c02d
2 changed files with 4 additions and 3 deletions
|
@ -4,8 +4,6 @@ import java.lang.reflect.Field;
|
|||
import java.lang.reflect.Modifier;
|
||||
|
||||
import net.minecraft.util.registry.RegistryNamespaced;
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
import net.minecraftforge.fml.common.ModContainer;
|
||||
import net.minecraftforge.registries.ILockableRegistry;
|
||||
|
||||
public final class RegistryLockSpinner {
|
||||
|
|
|
@ -72,7 +72,10 @@ public class ItemApple extends ItemFood {
|
|||
public ItemApple(String domain, String name) {
|
||||
super(4, 3, false);
|
||||
setTranslationKey(name);
|
||||
setRegistryName(domain, name);
|
||||
|
||||
if (!"minecraft".contentEquals(domain)) {
|
||||
setRegistryName(domain, name);
|
||||
}
|
||||
}
|
||||
|
||||
public ItemApple setSubTypes(String... types) {
|
||||
|
|
Loading…
Reference in a new issue