mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 03:25:24 +01:00
Fixed redstone listener for newer versions of Bukkit.
This commit is contained in:
parent
feb9ce6633
commit
95b2d9419f
@ -426,9 +426,9 @@ public void onBlockRightClick(BlockRightClickEvent event) {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
@Override
|
||||
public void onBlockRedstoneChange(BlockFromToEvent event) {
|
||||
public void onBlockRedstoneChange(BlockRedstoneEvent event) {
|
||||
World world = event.getBlock().getWorld();
|
||||
Block blockTo = event.getToBlock();
|
||||
Block blockTo = event.getBlock();
|
||||
|
||||
if (plugin.simulateSponge && plugin.redstoneSponges) {
|
||||
int ox = blockTo.getX();
|
||||
|
Loading…
Reference in New Issue
Block a user