修复可能造成Mod附属数据错误的问题,涉及到例如TC背包会出现处理包失败的错误,AM2的等级跨世界无法同步
This commit is contained in:
parent
7bbc071d49
commit
e5f30f532d
@ -1,16 +1,12 @@
|
|||||||
package kcauldron;
|
package kcauldron;
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayerMP;
|
import net.minecraft.entity.player.EntityPlayerMP;
|
||||||
import net.minecraft.inventory.ContainerPlayer;
|
|
||||||
import net.minecraft.server.management.ItemInWorldManager;
|
|
||||||
import net.minecraft.world.WorldServer;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
|
||||||
import net.minecraftforge.event.entity.player.PlayerEvent;
|
|
||||||
|
|
||||||
public enum ReverseClonner {
|
public enum ReverseClonner {
|
||||||
;
|
;
|
||||||
|
|
||||||
public static EntityPlayerMP clone(EntityPlayerMP player, boolean wasDeath) {
|
public static EntityPlayerMP clone(EntityPlayerMP player, boolean wasDeath) {
|
||||||
|
/*
|
||||||
EntityPlayerMP shadowCopy = new EntityPlayerMP(player.mcServer, (WorldServer) player.worldObj,
|
EntityPlayerMP shadowCopy = new EntityPlayerMP(player.mcServer, (WorldServer) player.worldObj,
|
||||||
player.getGameProfile(), new ItemInWorldManager(player.worldObj));
|
player.getGameProfile(), new ItemInWorldManager(player.worldObj));
|
||||||
shadowCopy.bukkitEntity = player.bukkitEntity;
|
shadowCopy.bukkitEntity = player.bukkitEntity;
|
||||||
@ -21,6 +17,7 @@ public enum ReverseClonner {
|
|||||||
player.inventoryContainer = new ContainerPlayer(player.inventory, !player.worldObj.isRemote, player);
|
player.inventoryContainer = new ContainerPlayer(player.inventory, !player.worldObj.isRemote, player);
|
||||||
}
|
}
|
||||||
MinecraftForge.EVENT_BUS.post(new PlayerEvent.Clone(player, shadowCopy, wasDeath));
|
MinecraftForge.EVENT_BUS.post(new PlayerEvent.Clone(player, shadowCopy, wasDeath));
|
||||||
|
*/
|
||||||
return player;
|
return player;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user