feat: config to disable transmutation table
This commit is contained in:
parent
2b39760e21
commit
8b6e17fe4e
|
@ -42,8 +42,7 @@ repositories {
|
|||
}*/
|
||||
}
|
||||
dependencies {
|
||||
implementation "com.github.GTNewHorizons:NotEnoughItems:2.3.19-GTNH:dev"
|
||||
implementation "com.github.GTNewHorizons:EnderStorage:master-SNAPSHOT:dev"
|
||||
implementation "com.github.GTNewHorizons:NotEnoughItems:2.3.20-GTNH:dev"
|
||||
implementation "com.github.GTNewHorizons:waila:master-SNAPSHOT:dev"
|
||||
|
||||
// implementation "mozeintel:ProjectE:1.7.10-PE1.10.1"
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#Sat Dec 28 00:14:08 EST 2013
|
||||
minecraft_version = 1.7.10
|
||||
forge_version = 10.13.4.1614-1.7.10
|
||||
mod_version = 0.4.1
|
||||
mod_version = 0.5.0
|
||||
api_version = 1.4.0
|
||||
release_type = release
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.pahimar.ee3.array;
|
|||
|
||||
import java.util.Random;
|
||||
|
||||
import com.pahimar.ee3.handler.ConfigurationHandler.Settings;
|
||||
import com.pahimar.ee3.init.ModBlocks;
|
||||
import com.pahimar.ee3.reference.Names;
|
||||
import com.pahimar.ee3.reference.Particles;
|
||||
|
@ -70,7 +71,7 @@ public class AlchemyArrayTransmutation extends AlchemyArrayEE implements IInvent
|
|||
// return;
|
||||
// }
|
||||
|
||||
if (!world.isRemote && entityPlayer.isSneaking()) {
|
||||
if (!world.isRemote && entityPlayer.isSneaking() && Settings.canCreateTransmutation) {
|
||||
boolean successFlag = false;
|
||||
|
||||
if (world.getTileEntity(arrayX, arrayY, arrayZ)
|
||||
|
|
|
@ -74,6 +74,8 @@ public class ConfigurationHandler {
|
|||
Settings.USE_PLAYER_KNOWLEDGE_TEMPLATE_LABEL
|
||||
);
|
||||
|
||||
Settings.canCreateTransmutation = configuration.getBoolean(Settings.CREATE_TRANSMUTATION_NAME, CATEGORY_PLAYER_KNOWLEDGE, Settings.CREATE_TRANSMUTATION_DEFAULT, Settings.CREATE_TRANSMUTATION_COMMENT);
|
||||
|
||||
if (configuration.hasChanged()) {
|
||||
configuration.save();
|
||||
}
|
||||
|
@ -133,5 +135,11 @@ public class ConfigurationHandler {
|
|||
private static final String USE_PLAYER_KNOWLEDGE_TEMPLATE_COMMENT
|
||||
= "player_knowledge.use_template.comment";
|
||||
private static final boolean USE_PLAYER_KNOWLEDGE_TEMPLATE_DEFAULT = true;
|
||||
|
||||
public static boolean canCreateTransmutation;
|
||||
private static final String CREATE_TRANSMUTATION_NAME = "enable_transmutation";
|
||||
private static final String CREATE_TRANSMUTATION_COMMENT
|
||||
= "Whether or not the player can create a transmutation table";
|
||||
private static final boolean CREATE_TRANSMUTATION_DEFAULT = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue