@@ -1,15 +1,15 @@
|
||||
--- a/net/minecraft/world/level/block/BlockRedstoneLamp.java
|
||||
+++ b/net/minecraft/world/level/block/BlockRedstoneLamp.java
|
||||
@@ -12,6 +12,8 @@
|
||||
import net.minecraft.world.level.block.state.IBlockData;
|
||||
@@ -13,6 +13,8 @@
|
||||
import net.minecraft.world.level.block.state.properties.BlockStateBoolean;
|
||||
import net.minecraft.world.level.redstone.Orientation;
|
||||
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
|
||||
+
|
||||
public class BlockRedstoneLamp extends Block {
|
||||
|
||||
public static final MapCodec<BlockRedstoneLamp> CODEC = simpleCodec(BlockRedstoneLamp::new);
|
||||
@@ -42,6 +44,11 @@
|
||||
@@ -43,6 +45,11 @@
|
||||
if (flag1) {
|
||||
world.scheduleTick(blockposition, (Block) this, 4);
|
||||
} else {
|
||||
@@ -21,7 +21,7 @@
|
||||
world.setBlock(blockposition, (IBlockData) iblockdata.cycle(BlockRedstoneLamp.LIT), 2);
|
||||
}
|
||||
}
|
||||
@@ -52,6 +59,11 @@
|
||||
@@ -53,6 +60,11 @@
|
||||
@Override
|
||||
protected void tick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, RandomSource randomsource) {
|
||||
if ((Boolean) iblockdata.getValue(BlockRedstoneLamp.LIT) && !worldserver.hasNeighborSignal(blockposition)) {
|
||||
|
||||
Reference in New Issue
Block a user