mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +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 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 {
|
||||||
|
|
|
@ -72,8 +72,11 @@ 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);
|
||||||
|
|
||||||
|
if (!"minecraft".contentEquals(domain)) {
|
||||||
setRegistryName(domain, name);
|
setRegistryName(domain, name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public ItemApple setSubTypes(String... types) {
|
public ItemApple setSubTypes(String... types) {
|
||||||
setHasSubtypes(types.length > 0);
|
setHasSubtypes(types.length > 0);
|
||||||
|
|
Loading…
Reference in a new issue