MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 433 forks source link

Add option to allow players use creative-mode things in survival-mode #3438

Open InkerBot opened 3 years ago

InkerBot commented 3 years ago

Add an option to Allow players use Creative-mode's computers and robots.

Sorry for poor ability in scala, I list all files may need edit.

https://github.com/MightyPirates/OpenComputers/blob/af2db43c53b9690fceabfb813987572bf2258db5/src/main/scala/li/cil/oc/common/tileentity/Robot.scala#L707

https://github.com/MightyPirates/OpenComputers/blob/af2db43c53b9690fceabfb813987572bf2258db5/src/main/scala/li/cil/oc/common/tileentity/Case.scala#L121

https://github.com/MightyPirates/OpenComputers/blob/af2db43c53b9690fceabfb813987572bf2258db5/src/main/scala/li/cil/oc/common/block/Case.scala#L94

https://github.com/MightyPirates/OpenComputers/blob/af2db43c53b9690fceabfb813987572bf2258db5/src/main/scala/li/cil/oc/common/EventHandler.scala#L237 (And line 242)

https://github.com/MightyPirates/OpenComputers/blob/af2db43c53b9690fceabfb813987572bf2258db5/src/main/scala/li/cil/oc/common/block/RobotProxy.scala#L252

AR2000AR commented 3 years ago

I think this could be a good idea but it must be disable by default to protect multiplayer servers.