From 922a57b7df9e34da90b7e81c53951e4e3755a943 Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Wed, 31 Dec 2014 09:12:57 +0000 Subject: [PATCH] fix problems on Mac OS --- src/main/js/modules/blockhelper.js | 11 ++++++----- src/main/js/plugins/drone/drone.js | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) 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); } } }