Skip to content

Commit

Permalink
Fixed: исправлена работа Redstone
Browse files Browse the repository at this point in the history
  • Loading branch information
Reider745 committed Jan 10, 2025
1 parent 8e793cd commit e1734de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/reider745/block/CustomBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public int onUpdate(int type) {
NativeCallback.onRandomBlockTick((int) this.x, (int) this.y, (int) this.z, id, this.getDamage(),
this.level);
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);
getLevel().getServer().getPluginManager().callEvent(ev);
if (ev.isCancelled())
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/reider745/event/EventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import cn.nukkit.level.MovingObjectPosition;
import cn.nukkit.level.Position;
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.network.protocol.UpdateBlockPacket;
import cn.nukkit.scheduler.AsyncTask;
Expand Down

0 comments on commit e1734de

Please sign in to comment.