mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
[Bleeding] Audit of onPlace methods, Moved to postPlace as appropriate.
Closes BUKKIT-89
This commit is contained in:
@@ -50,7 +50,12 @@ public class BlockRedstoneTorch extends BlockTorch {
|
||||
if (world.getData(i, j, k) == 0) {
|
||||
super.onPlace(world, i, j, k);
|
||||
}
|
||||
// CraftBukkit start - onPlace(World, int, int, int) -> postPlace(World, int, int, int, int)
|
||||
}
|
||||
|
||||
public void postPlace(World world, int i, int j, int k, int l) {
|
||||
super.postPlace(world, i, j, k, l);
|
||||
// CraftBukkit end
|
||||
if (this.isOn) {
|
||||
world.applyPhysics(i, j - 1, k, this.id);
|
||||
world.applyPhysics(i, j + 1, k, this.id);
|
||||
|
Reference in New Issue
Block a user