diff --git a/src/main/js/modules/blockhelper.js b/src/main/js/modules/blockhelper.js index 4902bc5..d20decd 100644 --- a/src/main/js/modules/blockhelper.js +++ b/src/main/js/modules/blockhelper.js @@ -1,10 +1,6 @@ 'use strict'; /*global module, exports, require, Packages, __plugin, server*/ -var Facing = Packages.net.minecraft.util.EnumFacing, - DoorHalf = Packages.net.minecraft.block.BlockDoor.EnumDoorHalf, - HingePosition = Packages.net.minecraft.block.BlockDoor.EnumHingePosition, - DyeColor = Packages.net.minecraft.item.EnumDyeColor, - blocks = require('blocks'), +var blocks = require('blocks'), bountiful = false; if (__plugin.canary){ @@ -13,6 +9,11 @@ if (__plugin.canary){ var lookup = {}; function initLookup(){ + var Facing = Packages.net.minecraft.util.EnumFacing, + DoorHalf = Packages.net.minecraft.block.BlockDoor.EnumDoorHalf, + HingePosition = Packages.net.minecraft.block.BlockDoor.EnumHingePosition, + DyeColor = Packages.net.minecraft.item.EnumDyeColor; + lookup = { facing: { 0: Facing.EAST, diff --git a/src/main/js/plugins/drone/drone.js b/src/main/js/plugins/drone/drone.js index 0e5b7fd..636f76b 100644 --- a/src/main/js/plugins/drone/drone.js +++ b/src/main/js/plugins/drone/drone.js @@ -411,7 +411,7 @@ Drone.getDirFromRotation = getDirFromRotation; Drone.queue = []; Drone.opsPerSec = 10; -Drone.processQueue = function(){ +Drone.processQueue = function processQueue(){ var process, i = 0, queues = getAllQueues(); @@ -423,7 +423,6 @@ Drone.processQueue = function(){ process(); } catch( e ) { console.log('Drone build error: ' + e + ' while processing ' + process); - e.printStackTrace(java.lang.System.out); } } }