mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-27 15:33:23 +00:00
Compat patches for Vanilla/ChunkAPI/EndlessIDs (#8)
This commit is contained in:
1 parent
0999b44caf
commit
46877823aa
9 files changed
+270
-68
No files matched your search
@@ -5,6 +5,7 @@ import java.util.function.Function;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import com.gtnewhorizons.postea.api.IDExtenderCompat;
|
||||
import com.gtnewhorizons.postea.api.ItemStackReplacementManager;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
@@ -16,7 +17,7 @@ public abstract class ItemFixerUtility {
|
||||
if (tag.hasNoTags()) return;
|
||||
|
||||
if (tag.hasKey("id")) {
|
||||
short id = tag.getShort("id");
|
||||
int id = IDExtenderCompat.getItemStackID(tag);
|
||||
Item item = Item.getItemById(id);
|
||||
if (item == null) return;
|
||||
String itemNameInternal = GameRegistry.findUniqueIdentifierFor(item).modId + ":"
|
||||
|
||||
Reference in new issue
Block a user