Fixes #1043
This commit is contained in:
parent
efbd5542b4
commit
20e9276bd9
4 changed files with 42 additions and 6 deletions
|
@ -30,6 +30,7 @@ import net.minecraftforge.fluids.FluidRegistry;
|
|||
import org.apache.commons.lang3.Validate;
|
||||
import reborncore.common.util.StringUtils;
|
||||
|
||||
|
||||
public class ItemCells {
|
||||
public static ItemStack getCellByName(String name, int count) {
|
||||
if (name.equalsIgnoreCase("empty") || name.equalsIgnoreCase("cell")) {
|
||||
|
@ -50,4 +51,8 @@ public class ItemCells {
|
|||
return getCellByName(name, 1);
|
||||
}
|
||||
|
||||
public static boolean isCellEqual(ItemStack stack1, ItemStack stack2){
|
||||
return stack1.getTagCompound().equals(stack2.getTagCompound());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue