Fixed: исправлена работа Redstone
This commit is contained in:
@@ -323,7 +323,7 @@ public class CustomBlock extends BlockSolidMeta implements RandomTick {
|
|||||||
NativeCallback.onRandomBlockTick((int) this.x, (int) this.y, (int) this.z, id, this.getDamage(),
|
NativeCallback.onRandomBlockTick((int) this.x, (int) this.y, (int) this.z, id, this.getDamage(),
|
||||||
this.level);
|
this.level);
|
||||||
return type;
|
return type;
|
||||||
} else if (type == Level.BLOCK_UPDATE_REDSTONE) {
|
} else if (type == Level.BLOCK_UPDATE_REDSTONE || type == Level.BLOCK_UPDATE_NORMAL) {
|
||||||
RedstoneUpdateEvent ev = new RedstoneUpdateEvent(this);
|
RedstoneUpdateEvent ev = new RedstoneUpdateEvent(this);
|
||||||
getLevel().getServer().getPluginManager().callEvent(ev);
|
getLevel().getServer().getPluginManager().callEvent(ev);
|
||||||
if (ev.isCancelled())
|
if (ev.isCancelled())
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ import cn.nukkit.level.Location;
|
|||||||
import cn.nukkit.level.MovingObjectPosition;
|
import cn.nukkit.level.MovingObjectPosition;
|
||||||
import cn.nukkit.level.Position;
|
import cn.nukkit.level.Position;
|
||||||
import cn.nukkit.level.format.FullChunk;
|
import cn.nukkit.level.format.FullChunk;
|
||||||
|
import cn.nukkit.level.particle.FlameParticle;
|
||||||
|
import cn.nukkit.level.particle.Particle;
|
||||||
import cn.nukkit.math.Vector3;
|
import cn.nukkit.math.Vector3;
|
||||||
import cn.nukkit.network.protocol.UpdateBlockPacket;
|
import cn.nukkit.network.protocol.UpdateBlockPacket;
|
||||||
import cn.nukkit.scheduler.AsyncTask;
|
import cn.nukkit.scheduler.AsyncTask;
|
||||||
|
|||||||
Reference in New Issue
Block a user