mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-20 12:09:59 +00:00
1.0.1.10 updates
- api package-info.java cleanup (closes #80) - now you won't lose items in bauble crafting grid when switching back to vanilla inventory
This commit is contained in:
1 parent
97ebb51fc9
commit
bc52440e62
6 files changed
+10
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
@API(owner = "Baubles", apiVersion = baubles.common.Baubles.VERSION, provides = "Baubles|API")
|
||||
@API(owner = "Baubles", apiVersion = "1.0.1.10", provides = "Baubles|API")
|
||||
package baubles.api;
|
||||
|
||||
import cpw.mods.fml.common.API;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Baubles {
|
||||
|
||||
public static final String MODID = "Baubles";
|
||||
public static final String MODNAME = "Baubles";
|
||||
public static final String VERSION = "1.0.1.9";
|
||||
public static final String VERSION = "1.0.1.10";
|
||||
|
||||
@SidedProxy(clientSide = "baubles.client.ClientProxy", serverSide = "baubles.common.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@@ -105,7 +105,6 @@ public class ContainerPlayerExpanded extends Container
|
||||
public void onContainerClosed(EntityPlayer player)
|
||||
{
|
||||
super.onContainerClosed(player);
|
||||
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
ItemStack itemstack = this.craftMatrix.getStackInSlotOnClosing(i);
|
||||
@@ -119,7 +118,6 @@ public class ContainerPlayerExpanded extends Container
|
||||
this.craftResult.setInventorySlotContents(0, (ItemStack)null);
|
||||
if (!player.worldObj.isRemote) {
|
||||
PlayerHandler.setPlayerBaubles(player, baubles);
|
||||
// PlayerHandler.savePlayerBaubles(player);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -372,5 +370,7 @@ public class ContainerPlayerExpanded extends Container
|
||||
{
|
||||
return par2Slot.inventory != this.craftResult && super.func_94530_a(par1ItemStack, par2Slot);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -20,6 +20,7 @@ public class PacketOpenNormalInventory implements IMessage, IMessageHandler<Pack
|
||||
|
||||
@Override
|
||||
public IMessage onMessage(PacketOpenNormalInventory message, MessageContext ctx) {
|
||||
ctx.getServerHandler().playerEntity.openContainer.onContainerClosed(ctx.getServerHandler().playerEntity);
|
||||
ctx.getServerHandler().playerEntity.openContainer = ctx.getServerHandler().playerEntity.inventoryContainer;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user