mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
rename (#227)
This commit is contained in:
1 parent
7deb868713
commit
41963430dd
3 files changed
+4
-4
No files matched your search
@@ -33,7 +33,7 @@ public class DefaultExtractorLoader implements Runnable {
|
||||
|
||||
if (ModAndClassUtil.GT5) {
|
||||
try {
|
||||
Class<?> recipeMapClazz = Class.forName("gregtech.api.util.GT_Recipe$GT_Recipe_Map");
|
||||
Class<?> recipeMapClazz = Class.forName("gregtech.api.util.GTRecipe$GT_Recipe_Map");
|
||||
Collection<?> sMappings = (Collection<?>) recipeMapClazz.getDeclaredField("sMappings").get(null);
|
||||
for (Object tMap : sMappings) {
|
||||
String mNEIName = (String) recipeMapClazz.getDeclaredField("mNEIName").get(tMap);
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ import com.glodblock.github.nei.object.OrderStack;
|
||||
|
||||
import codechicken.nei.PositionedStack;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import gregtech.common.items.GT_FluidDisplayItem;
|
||||
import gregtech.common.items.ItemFluidDisplay;
|
||||
|
||||
public class GregTech5RecipeExtractor implements IRecipeExtractor {
|
||||
|
||||
@@ -47,7 +47,7 @@ public class GregTech5RecipeExtractor implements IRecipeExtractor {
|
||||
public static Object getFluidFromDisplay(PositionedStack stack) {
|
||||
if (stack != null) {
|
||||
ItemStack item = stack.items[0].copy();
|
||||
if (item.getItem() instanceof GT_FluidDisplayItem) {
|
||||
if (item.getItem() instanceof ItemFluidDisplay) {
|
||||
if (item.getTagCompound() != null) {
|
||||
Fluid fluid = FluidRegistry.getFluid(item.getItemDamage());
|
||||
int amt = (int) item.getTagCompound().getLong("mFluidDisplayAmount");
|
||||
|
||||
Reference in new issue
Block a user