forked from xjboss/KCauldronX
修复重复添加物品的bug,已经不更新背包的问题
This commit is contained in:
parent
9dc4f12762
commit
8f7f315790
@ -24,7 +24,6 @@ public class ItemSnapshot{
|
|||||||
public boolean apply(){
|
public boolean apply(){
|
||||||
if(!this.mApply){
|
if(!this.mApply){
|
||||||
this.mApply=true;
|
this.mApply=true;
|
||||||
this.mPlayer.inventory.addItemStackToInventory(this.mItem);
|
|
||||||
|
|
||||||
if(!this.mPlayer.inventory.addItemStackToInventory(this.mItem)){
|
if(!this.mPlayer.inventory.addItemStackToInventory(this.mItem)){
|
||||||
this.mPlayer.worldObj.spawnEntityInWorld(
|
this.mPlayer.worldObj.spawnEntityInWorld(
|
||||||
|
Loading…
Reference in New Issue
Block a user