Class: MojangExtractTweakersSanitizer
- Inherits:
-
BaseSanitizer
- Object
- BaseSanitizer
- MojangExtractTweakersSanitizer
- Defined in:
- lib/wonko_the_sane/input/mojang_input.rb
Class Method Summary collapse
Class Method Details
.sanitize(file) ⇒ Object
135 136 137 138 139 |
# File 'lib/wonko_the_sane/input/mojang_input.rb', line 135 def self.sanitize(file) file.client.tweakers = file.client.minecraftArguments.scan(/--tweakClass ([^ ]*)/).flatten file.client.minecraftArguments = file.client.minecraftArguments.gsub /\ ?--tweakClass ([^ ]*)/, '' file end |