This commit is contained in:
jomo
2014-06-10 04:23:13 +02:00
parent 13a828ad29
commit cd346f9e60
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
name: RedstonerUtils name: RedstonerUtils
main: main.py main: main.py
version: v3.0.0 version: 3.0.0
author: redstone_sheep author: redstone_sheep

View File

@@ -62,7 +62,7 @@ def onPlaceBlockInRegion(event):
newstate = newblock.getState() newstate = newblock.getState()
newstate.setType(block.getType()) newstate.setType(block.getType())
event = BlockPlaceEvent(newstate.getBlock(), newstate.getState(), newagainst, event.getItemInHand(), player, event.canBuild()) event = BlockPlaceEvent(newstate.getBlock(), newblock.getState(), newagainst, event.getItemInHand(), player, event.canBuild())
server.getPluginManager().callEvent(event) server.getPluginManager().callEvent(event)
msg(player, "Direction %s: %s" % (direction, not event.isCancelled())) msg(player, "Direction %s: %s" % (direction, not event.isCancelled()))
msg(player, "Position before: %s -- after: %s" % ([block.getX(), block.getY(), block.getZ()], [newstate.getX(), newstate.getY(), newstate.getZ()])) msg(player, "Position before: %s -- after: %s" % ([block.getX(), block.getY(), block.getZ()], [newstate.getX(), newstate.getY(), newstate.getZ()]))