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';
/*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,

View file

@ -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);
}
}
}