mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
--- ../work/decompile-bb26c12b/net/minecraft/server/BlockBloodStone.java 2014-11-27 08:59:46.505422709 +1100
|
||
|
+++ src/main/java/net/minecraft/server/BlockBloodStone.java 2014-11-27 08:42:10.124850965 +1100
|
||
|
@@ -1,5 +1,7 @@
|
||
|
package net.minecraft.server;
|
||
|
|
||
|
+import org.bukkit.event.block.BlockRedstoneEvent; // CraftBukkit
|
||
|
+
|
||
|
public class BlockBloodStone extends Block {
|
||
|
|
||
|
public BlockBloodStone() {
|
||
|
@@ -10,4 +12,17 @@
|
||
|
public MaterialMapColor g(IBlockData iblockdata) {
|
||
|
return MaterialMapColor.K;
|
||
|
}
|
||
|
+
|
||
|
+ // CraftBukkit start
|
||
|
+ @Override
|
||
|
+ public void doPhysics(World world, BlockPosition position, IBlockData iblockdata, Block block) {
|
||
|
+ if (block != null && block.isPowerSource()) {
|
||
|
+ org.bukkit.block.Block bl = world.getWorld().getBlockAt(position.getX(), position.getY(), position.getZ());
|
||
|
+ int power = bl.getBlockPower();
|
||
|
+
|
||
|
+ BlockRedstoneEvent event = new BlockRedstoneEvent(bl, power, power);
|
||
|
+ world.getServer().getPluginManager().callEvent(event);
|
||
|
+ }
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
}
|