yeah uh redoing OC compat

yeah it should work now idk
This commit is contained in:
BallOfEnergy 2023-04-03 09:01:56 -05:00 committed by GitHub
parent 8259c17e68
commit 70397b418d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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