Fix inventory wiping on keepInventory=true
This commit is contained in:
		@@ -34,7 +34,7 @@
 | 
			
		||||
+        this.theReportCategory.addCrashSectionCallable("KCauldron Version", new Callable<String>() {
 | 
			
		||||
+            @Override
 | 
			
		||||
+            public String call() throws Exception {
 | 
			
		||||
+                return String.format("%s:%s:%s", KCauldron.getGroup(), KCauldron.getChannel(), KCauldron.getCurrentVersion());
 | 
			
		||||
+                return String.format("%s:%s:%s %s", KCauldron.getGroup(), KCauldron.getChannel(), KCauldron.getCurrentVersion(), KCauldron.isOfficial() ? "Official" : "UNOFFICIAL DON'T REPORT THIS CRASH");
 | 
			
		||||
+            }
 | 
			
		||||
+        });
 | 
			
		||||
+        this.theReportCategory.addCrashSectionCallable("Plugins", new Callable<String>() {
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,7 @@ public enum ReverseClonner {
 | 
			
		||||
        EntityPlayerMP shadowCopy = new EntityPlayerMP(player.mcServer, (WorldServer) player.worldObj,
 | 
			
		||||
                player.getGameProfile(), new ItemInWorldManager(player.worldObj));
 | 
			
		||||
        shadowCopy.clonePlayer(player, true);
 | 
			
		||||
        if (wasDeath)  {
 | 
			
		||||
        if (wasDeath && !player.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory"))  {
 | 
			
		||||
            player.inventory.clearInventory(null, -1);
 | 
			
		||||
            player.inventoryContainer = new ContainerPlayer(player.inventory, !player.worldObj.isRemote, player);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user