mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
yeah uh redoing OC compat
yeah it should work now idk
This commit is contained in:
parent
8259c17e68
commit
70397b418d
@ -414,9 +414,9 @@ public class TileEntityRBMKRod extends TileEntityRBMKSlottedBase implements IRBM
|
|||||||
|
|
||||||
@Callback
|
@Callback
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getFuelType(Context context, Arguments args) {
|
public Object[] getItemData(Context context, Arguments args) {
|
||||||
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
||||||
return new Object[] {rod.getName()};
|
return new Object[] {slots[0]};
|
||||||
}
|
}
|
||||||
return new Object[] {"N/A"};
|
return new Object[] {"N/A"};
|
||||||
}
|
}
|
||||||
@ -457,13 +457,13 @@ public class TileEntityRBMKRod extends TileEntityRBMKSlottedBase implements IRBM
|
|||||||
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
||||||
OC_enrich_buf = ItemRBMKRod.getEnrichment(slots[0]);
|
OC_enrich_buf = ItemRBMKRod.getEnrichment(slots[0]);
|
||||||
OC_poison_buf = ItemRBMKRod.getPoison(slots[0]);
|
OC_poison_buf = ItemRBMKRod.getPoison(slots[0]);
|
||||||
OC_fuelType = rod.getName();
|
OC_item_Data = slots[0];
|
||||||
} else {
|
} else {
|
||||||
OC_enrich_buf = "N/A";
|
OC_enrich_buf = "N/A";
|
||||||
OC_poison_buf = "N/A";
|
OC_poison_buf = "N/A";
|
||||||
OC_fuelType = "N/A";
|
OC_item_Data = "N/A";
|
||||||
}
|
}
|
||||||
return new Object[] {heat, fluxSlow, fluxFast, OC_enrich_buf, OC_poison_buf, OC_fuelType};
|
return new Object[] {heat, fluxSlow, fluxFast, OC_enrich_buf, OC_poison_buf, OC_item_Data};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user