Don't re-init Drone if already loaded
This commit is contained in:
parent
f72d7866a4
commit
42dec77d85
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,7 @@ var global = this;
|
|||
//
|
||||
// Please read the following section to understand what a Minecraft Drone can do.
|
||||
//
|
||||
var Drone = {
|
||||
var Drone = Drone || {
|
||||
//
|
||||
// TLDNR; (Just read this if you're impatient)
|
||||
// ======
|
||||
|
@ -249,6 +249,12 @@ var Drone = {
|
|||
//
|
||||
(function(){
|
||||
//
|
||||
// don't want to declare object more than once
|
||||
//
|
||||
if (ScriptCraft.Drone){
|
||||
return;
|
||||
}
|
||||
//
|
||||
// Drone Constructor
|
||||
//
|
||||
var Drone = function(x,y,z,dir)
|
||||
|
|
Reference in a new issue