   #playerInventory.give new ItemPile('workbench', 1)
   #toolbar = createToolbar {el: '#tools'}
   #inventoryToolbar = plugins.load 'inventory-toolbar', {toolbar:toolbar, inventory:playerInventory, inventorySize:10, registry:registry}
-  inventoryHotbar = plugins.load 'inventory-hotbar', {inventory:playerInventory, inventorySize:10} # TODO: change to preload, but timeToMine below references it
+  plugins.preload 'inventory-hotbar', {inventory:playerInventory, inventorySize:10}
 
   plugins.preload 'inventory-dialog', {playerInventory:playerInventory}
 

    }
  }

  # note: preconfigure()'d, not preload()'d, so doesn't automatically enable
  plugins.preconfigure 'oculus', { distortion: 0.2, separation: 0.5 } # TODO: switch to voxel-oculus-vr? https://github.com/vladikoff/voxel-oculus-vr?source=c - closer matches threejs example

  if window.location.href.indexOf('rift') != -1 ||  window.location.hash.indexOf('rift') != -1

require 'voxel-harvest'
require 'voxel-use'
require 'voxel-reach'
require 'voxel-land'

module.exports = () ->
