mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-19 19:59:34 +00:00
Add config option item dislocator sound (#33)
* Add config option item dislocator sound Backport of upstream https://github.com/Draconic-Inc/Draconic-Evolution/commit/4570abbc71c720940493dd0cfdcc20e59b24fb5a When combined with the voiding drop filter, the item dislocator plays a sound for every single item in a stack picked up. This adds a config option to disable the sound entirely
This commit is contained in:
1 parent
165cc7e77d
commit
089a43ce68
2 files changed
+7
-1
No files matched your search
@@ -51,6 +51,7 @@ public class ConfigHandler {
|
||||
public static boolean enableFlight;
|
||||
private static String[] itemDislocatorBlacklist;
|
||||
public static Map<String, Integer> itemDislocatorBlacklistMap = new HashMap<String, Integer>();
|
||||
public static boolean itemDislocatorDisableSound;
|
||||
|
||||
// spawner
|
||||
public static String[] spawnerList;
|
||||
@@ -266,6 +267,11 @@ public class ConfigHandler {
|
||||
Configuration.CATEGORY_GENERAL,
|
||||
new String[] { "appliedenergistics2:item.ItemCrystalSeed" },
|
||||
"A list of items of items that should be ignored by the item dislocator. Use the items registry name e.g. minecraft:apple you can also add a meta value like so minecraft:wool|4");
|
||||
itemDislocatorDisableSound = config.get(
|
||||
Configuration.CATEGORY_GENERAL,
|
||||
"Item Dislocator Disable Sound",
|
||||
false,
|
||||
"Disable item dislocator sound").getBoolean(false);
|
||||
disableLog = config.get(
|
||||
Configuration.CATEGORY_GENERAL,
|
||||
"Disable Log",
|
||||
|
||||
@@ -121,7 +121,7 @@ public class Magnet extends ItemDE {
|
||||
entity.posY - 0.6,
|
||||
entity.posZ - 0.2 + (world.rand.nextDouble() * 0.4));
|
||||
}
|
||||
if (playSound) {
|
||||
if (playSound && !ConfigHandler.itemDislocatorDisableSound) {
|
||||
world.playSoundAtEntity(
|
||||
entity,
|
||||
"random.orb",
|
||||
|
||||
Reference in new issue
Block a user