mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
Added setting for whether to enable command block driver or not; defaulting to false.
This commit is contained in:
parent
a218b27e3a
commit
78d6ea15d2
@ -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
|
||||
|
@ -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")
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user