mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0a720ea4b | ||
|
|
24c1264686 |
No files matched your search
+2
-2
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api('com.github.GTNewHorizons:ForestryMC:4.10.17:dev')
|
api('com.github.GTNewHorizons:ForestryMC:4.10.17:dev')
|
||||||
implementation('com.github.GTNewHorizons:GTNHLib:0.6.39:dev')
|
implementation('com.github.GTNewHorizons:GTNHLib:0.6.40:dev')
|
||||||
|
|
||||||
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.7.90-GTNH:dev')
|
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.7.91-GTNH:dev')
|
||||||
|
|
||||||
compileOnly('com.github.GTNewHorizons:BuildCraft:7.1.44:api')
|
compileOnly('com.github.GTNewHorizons:BuildCraft:7.1.44:api')
|
||||||
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
|
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
|
||||||
|
|||||||
@@ -248,13 +248,6 @@ public class ContainerCraftGUI extends Container {
|
|||||||
public void handleNBT(Side side, EntityPlayer player, NBTTagCompound action) {
|
public void handleNBT(Side side, EntityPlayer player, NBTTagCompound action) {
|
||||||
final String actionType = action.getString(ACTION_TYPE);
|
final String actionType = action.getString(ACTION_TYPE);
|
||||||
|
|
||||||
if (actionType.equals(ACTION_BATCH)) {
|
|
||||||
NBTTagList actionsBatch = action.getTagList(ACTIONS, TAG_COMPOUND);
|
|
||||||
for (int i = 0; i < actionsBatch.tagCount(); i++) {
|
|
||||||
handleNBT(side, player, actionsBatch.getCompoundTagAt(i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (side == Side.SERVER) {
|
if (side == Side.SERVER) {
|
||||||
switch (actionType) {
|
switch (actionType) {
|
||||||
case TANK_CLICK -> tankClick(player, action.getByte(SLOT_ID));
|
case TANK_CLICK -> tankClick(player, action.getByte(SLOT_ID));
|
||||||
@@ -494,6 +487,13 @@ public class ContainerCraftGUI extends Container {
|
|||||||
|
|
||||||
public void receiveNBT(Side side, EntityPlayer player, NBTTagCompound action) {
|
public void receiveNBT(Side side, EntityPlayer player, NBTTagCompound action) {
|
||||||
String actionType = action.getString(ACTION_TYPE);
|
String actionType = action.getString(ACTION_TYPE);
|
||||||
|
if (actionType.equals(ACTION_BATCH)) {
|
||||||
|
NBTTagList actionsBatch = action.getTagList(ACTIONS, TAG_COMPOUND);
|
||||||
|
for (int i = 0; i < actionsBatch.tagCount(); i++) {
|
||||||
|
receiveNBT(side, player, actionsBatch.getCompoundTagAt(i));
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
handleNBT(side, player, action);
|
handleNBT(side, player, action);
|
||||||
window.receiveGuiNBT(getSide(), player, actionType, action);
|
window.receiveGuiNBT(getSide(), player, actionType, action);
|
||||||
INetwork.ReceiveGuiNBT machine = Machine.getInterface(INetwork.ReceiveGuiNBT.class, window.getInventory());
|
INetwork.ReceiveGuiNBT machine = Machine.getInterface(INetwork.ReceiveGuiNBT.class, window.getInventory());
|
||||||
|
|||||||
Reference in new issue
Block a user