mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
smallest fixes ever
This commit is contained in:
parent
72e4cb42e0
commit
0a5c4271f4
@ -55,7 +55,7 @@ public class CompatHandler {
|
||||
@Optional.Interface(iface = "li.cil.oc.api.network.Analyzable", modid = "OpenComputers"),
|
||||
@Optional.Interface(iface = "li.cil.oc.api.network.ManagedPeripheral", modid = "OpenComputers"),
|
||||
})
|
||||
@SimpleComponent.SkipInjection
|
||||
@SimpleComponent.SkipInjection // make sure OC doesn't inject this shit into the interface and crash
|
||||
public interface OCComponent extends SimpleComponent, SidedComponent, Analyzable, ManagedPeripheral {
|
||||
|
||||
/**
|
||||
|
||||
@ -978,12 +978,11 @@ public abstract class TileEntityTurretBaseNT extends TileEntityMachineBase imple
|
||||
@Callback(direct = true, limit = 4)
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] setTargeting(Context context, Arguments args) {
|
||||
Object[] oldTargeting = new Object[] {this.targetPlayers, this.targetAnimals, this.targetMobs, this.targetMachines};
|
||||
this.targetPlayers = args.checkBoolean(0);
|
||||
this.targetAnimals = args.checkBoolean(1);
|
||||
this.targetMobs = args.checkBoolean(2);
|
||||
this.targetMachines = args.checkBoolean(3);
|
||||
return oldTargeting;
|
||||
return new Object[] {};
|
||||
}
|
||||
|
||||
@Callback(direct = true)
|
||||
@ -1020,7 +1019,7 @@ public abstract class TileEntityTurretBaseNT extends TileEntityMachineBase imple
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] methods() {
|
||||
public String[] methods() { // :vomit:
|
||||
return new String[] {
|
||||
"setActive",
|
||||
"isActive",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user