oops, need to use newblock, not newagainst

This commit is contained in:
jomo
2014-06-10 03:46:59 +02:00
parent e0393b4d63
commit 1e80e50b1f

View File

@@ -57,4 +57,4 @@ def onPlaceBlockInRegion(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()]))
if not event.isCancelled(): if not event.isCancelled():
newagainst.setType(block.getType()) newblock.setType(block.getType())