mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
once more with feeling
This commit is contained in:
parent
37f7ee66e3
commit
33d749a7b4
@ -239,25 +239,27 @@ public class GUIReactorControl extends GuiInfoContainer {
|
|||||||
{
|
{
|
||||||
super.handleMouseInput();
|
super.handleMouseInput();
|
||||||
int i = Mouse.getEventDWheel();
|
int i = Mouse.getEventDWheel();
|
||||||
|
|
||||||
if (i > 0)
|
if(i != 0) {
|
||||||
{
|
if (i > 0)
|
||||||
i = 1;
|
{
|
||||||
|
i = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (i < 0)
|
||||||
|
{
|
||||||
|
i = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int rods = control.rods + i;
|
||||||
|
|
||||||
|
if(rods < 0)
|
||||||
|
rods = 0;
|
||||||
|
|
||||||
|
if(rods > 100)
|
||||||
|
rods = 100;
|
||||||
|
|
||||||
|
PacketDispatcher.wrapper.sendToServer(new AuxButtonPacket(control.xCoord, control.yCoord, control.zCoord, rods, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i < 0)
|
|
||||||
{
|
|
||||||
i = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int rods = control.rods + i;
|
|
||||||
|
|
||||||
if(rods < 0)
|
|
||||||
rods = 0;
|
|
||||||
|
|
||||||
if(rods > 100)
|
|
||||||
rods = 100;
|
|
||||||
|
|
||||||
PacketDispatcher.wrapper.sendToServer(new AuxButtonPacket(control.xCoord, control.yCoord, control.zCoord, rods, 0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ package com.hbm.lib;
|
|||||||
public class RefStrings {
|
public class RefStrings {
|
||||||
public static final String MODID = "hbm";
|
public static final String MODID = "hbm";
|
||||||
public static final String NAME = "Hbm's Nuclear Tech Mod";
|
public static final String NAME = "Hbm's Nuclear Tech Mod";
|
||||||
public static final String VERSION = "1.0.27 BETA (3000)";
|
public static final String VERSION = "1.0.27 BETA (3000B)";
|
||||||
//HBM's Beta Naming Convention:
|
//HBM's Beta Naming Convention:
|
||||||
//V T (X-Y-Z)
|
//V T (X-Y-Z)
|
||||||
//V -> next release version
|
//V -> next release version
|
||||||
|
|||||||
@ -133,6 +133,8 @@ public class AuxButtonPacket implements IMessage {
|
|||||||
if (reac instanceof TileEntityMachineReactorSmall) {
|
if (reac instanceof TileEntityMachineReactorSmall) {
|
||||||
TileEntityMachineReactorSmall reactor = (TileEntityMachineReactorSmall)reac;
|
TileEntityMachineReactorSmall reactor = (TileEntityMachineReactorSmall)reac;
|
||||||
|
|
||||||
|
System.out.println(m.id + "/" + m.value);
|
||||||
|
|
||||||
if(m.id == 0)
|
if(m.id == 0)
|
||||||
reactor.retracting = m.value == 0;
|
reactor.retracting = m.value == 0;
|
||||||
|
|
||||||
|
|||||||
@ -272,7 +272,7 @@ public class TileEntityReactorControl extends TileEntity implements ISidedInvent
|
|||||||
reactor.retracting = true;
|
reactor.retracting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if(linkY >= 0 && worldObj.getTileEntity(linkX, linkY, linkZ) instanceof TileEntityMachineReactorLarge) {
|
} else if(linkY >= 0 && worldObj.getTileEntity(linkX, linkY, linkZ) instanceof TileEntityMachineReactorLarge && ((TileEntityMachineReactorLarge)worldObj.getTileEntity(linkX, linkY, linkZ)).checkBody()) {
|
||||||
TileEntityMachineReactorLarge reactor = (TileEntityMachineReactorLarge)worldObj.getTileEntity(linkX, linkY, linkZ);
|
TileEntityMachineReactorLarge reactor = (TileEntityMachineReactorLarge)worldObj.getTileEntity(linkX, linkY, linkZ);
|
||||||
|
|
||||||
hullHeat = reactor.hullHeat;
|
hullHeat = reactor.hullHeat;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user