fix problems on Mac OS

This commit is contained in:
Walter Higgins 2014-12-31 09:12:57 +00:00
parent e388cdbc8e
commit 922a57b7df
2 changed files with 7 additions and 7 deletions

View file

@ -1,10 +1,6 @@
'use strict'; 'use strict';
/*global module, exports, require, Packages, __plugin, server*/ /*global module, exports, require, Packages, __plugin, server*/
var Facing = Packages.net.minecraft.util.EnumFacing, var blocks = require('blocks'),
DoorHalf = Packages.net.minecraft.block.BlockDoor.EnumDoorHalf,
HingePosition = Packages.net.minecraft.block.BlockDoor.EnumHingePosition,
DyeColor = Packages.net.minecraft.item.EnumDyeColor,
blocks = require('blocks'),
bountiful = false; bountiful = false;
if (__plugin.canary){ if (__plugin.canary){
@ -13,6 +9,11 @@ if (__plugin.canary){
var lookup = {}; var lookup = {};
function initLookup(){ 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 = { lookup = {
facing: { facing: {
0: Facing.EAST, 0: Facing.EAST,

View file

@ -411,7 +411,7 @@ Drone.getDirFromRotation = getDirFromRotation;
Drone.queue = []; Drone.queue = [];
Drone.opsPerSec = 10; Drone.opsPerSec = 10;
Drone.processQueue = function(){ Drone.processQueue = function processQueue(){
var process, var process,
i = 0, i = 0,
queues = getAllQueues(); queues = getAllQueues();
@ -423,7 +423,6 @@ Drone.processQueue = function(){
process(); process();
} catch( e ) { } catch( e ) {
console.log('Drone build error: ' + e + ' while processing ' + process); console.log('Drone build error: ' + e + ' while processing ' + process);
e.printStackTrace(java.lang.System.out);
} }
} }
} }