From b036274b93542170551f65bd855a2c97d9540e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=AA=E8=81=AA?= <178666380@qq.com> Date: Sun, 30 Jul 2017 11:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=94=BE=E7=BD=AE,=E8=BF=98=E5=8E=9F=E6=96=B9=E5=9D=97?= =?UTF-8?q?=E6=97=B6=E9=80=A0=E6=88=90=E5=88=B7=E7=89=A9=E5=93=81=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cc/capture/type/CaptureBlock.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/cc/capture/type/CaptureBlock.java b/src/main/java/cc/capture/type/CaptureBlock.java index 3c03d49..58dcb2c 100644 --- a/src/main/java/cc/capture/type/CaptureBlock.java +++ b/src/main/java/cc/capture/type/CaptureBlock.java @@ -24,8 +24,6 @@ import net.minecraftforge.event.world.BlockEvent.PlaceEvent; public class CaptureBlock extends ACapture{ - /** 是否为还原模式 */ - public boolean mRestoring=false; /** 当前物品 */ public ItemStack mUseItem=null; /** 当前物品所在的快捷栏位置,如果为-1表示不存在,或者不是从背包取出的物品 */ @@ -117,10 +115,10 @@ public class CaptureBlock extends ACapture{ } if(!this.mCapturedBlocks.isEmpty()){ for(int i=this.mCapturedBlocks.size();i>0;){ - this.mRestoring=true; + this.mWorld.restoringBlockSnapshots=true; BlockSnapshot tSnapshot=this.mCapturedBlocks.get(--i); tSnapshot.restore(true,false); - this.mRestoring=false; + this.mWorld.restoringBlockSnapshots=false; } } for(EntitySnapshot sSnapshot : this.mCapturedEntitys){