CanaryModTeam / CanaryLib

The CanaryMod API Library
http://canarymod.net
28 stars 22 forks source link

Simulating right click on lever or button causes it to break. #130

Closed Sasha91 closed 8 years ago

Sasha91 commented 8 years ago

I was playing around with some scriptcraft, when i found that simulating a right click on a lever or button, causes it to fall off and lay on the ground as an item. I can only assume that this is a bug.

code piece: var block;

function rightClick(event) { block = event.getBlockClicked(); echo(event.player, "block registered"); }

exports.sim = function(player) { echo(player, "now simulating right click"); if(block.rightClick(player)) { echo(player, "success"); } else { echo(player, "failure"); } }

events.blockRightClick(rightClick);

jamierocks commented 8 years ago

This is not the correct place to get ScriptCraft help.

Larry1123 commented 8 years ago

Yea this sounds to be something wrong in script craft and not canary. Confirm this to be a canary issue and reopen this with more info if it is.