Added setting for whether to enable command block driver or not; defaulting to false.

This commit is contained in:
Florian Nücke 2015-01-28 22:17:01 +01:00
parent a218b27e3a
commit 78d6ea15d2
3 changed files with 9 additions and 1 deletions

View File

@ -1039,6 +1039,11 @@ opencomputers {
# an adapter has pretty much the same effect.
enableTankDriver: false
# Whether to enable the command block driver. Enabling this allows
# computers to set and execute commands via command blocks next to
# adapter blocks. The commands are run using OC's general fake player.
enableCommandBlockDriver: false
# Whether to allow the item stack converter to push NBT data in
# compressed format (GZIP'ed). This can be useful for pushing this
# data back to other callbacks. However, given a sophisticated

View File

@ -304,6 +304,7 @@ class Settings(val config: Config) {
// integration.vanilla
val enableInventoryDriver = config.getBoolean("integration.vanilla.enableInventoryDriver")
val enableTankDriver = config.getBoolean("integration.vanilla.enableTankDriver")
val enableCommandBlockDriver = config.getBoolean("integration.vanilla.enableCommandBlockDriver")
val allowItemStackNBTTags = config.getBoolean("integration.vanilla.allowItemStackNBTTags")
// ----------------------------------------------------------------------- //

View File

@ -11,7 +11,6 @@ object ModVanilla extends ModProxy {
def initialize() {
Driver.add(new DriverBeacon)
Driver.add(new DriverBrewingStand)
Driver.add(new DriverCommandBlock)
Driver.add(new DriverComparator)
Driver.add(new DriverFurnace)
Driver.add(new DriverMobSpawner)
@ -25,6 +24,9 @@ object ModVanilla extends ModProxy {
Driver.add(new DriverFluidHandler)
Driver.add(new DriverFluidTank)
}
if (Settings.get.enableCommandBlockDriver) {
Driver.add(new DriverCommandBlock)
}
Driver.add(ConverterFluidStack)
Driver.add(ConverterFluidTankInfo)