Ported to 1.16.2-pre
This commit is contained in:
@@ -132,7 +132,7 @@ public final class ContainerLocator {
|
||||
public static ContainerLocator forPart(AEBasePart part) {
|
||||
IPartHost host = part.getHost();
|
||||
DimensionalCoord pos = host.getLocation();
|
||||
return new ContainerLocator(Type.PART, -1, pos.getWorld().getWorld(), pos.getBlockPos(), part.getSide());
|
||||
return new ContainerLocator(Type.PART, -1, pos.getWorld(), pos.getBlockPos(), part.getSide());
|
||||
}
|
||||
|
||||
public boolean hasItemIndex() {
|
||||
|
||||
@@ -233,7 +233,7 @@ public class RestrictedInputSlot extends AppEngSlot {
|
||||
// TODO: Can be optimized by somehow caching the Tag's
|
||||
Item item = i.getItem();
|
||||
for (Identifier tagName : METAL_INGOT_TAGS) {
|
||||
Tag<Item> ingotTag = ItemTags.getContainer().get(tagName);
|
||||
Tag<Item> ingotTag = ItemTags.getTagGroup().getTag(tagName);
|
||||
if (ingotTag != null && item.isIn(ingotTag)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user