Skip to content

Commit

Permalink
Various Fixes (runelite#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganom authored and xKylee committed May 30, 2019
1 parent c047edb commit 83fd69c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ default int fakeXpDropDelay()
}

@ConfigItem(
keyName = "showDamage",
keyName = "showdamagedrops",
name = "Show Damage on XP Drop",
description = "Show what you hit next to the XP drop",
position = 5
)
default DamageMode showdamage()
default DamageMode showdamagedrops()
{
return DamageMode.NONE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ XpDropConfig provideConfig(ConfigManager configManager)
@Override
protected void startUp() throws Exception
{
damageMode = config.showdamage();
damageMode = config.showdamagedrops();

if (damageMode == XpDropConfig.DamageMode.ABOVE_OPPONENT)
{
Expand All @@ -138,7 +138,7 @@ public void onConfigChanged(ConfigChanged event)

if (damageMode != XpDropConfig.DamageMode.ABOVE_OPPONENT)
{
damageMode = config.showdamage();
damageMode = config.showdamagedrops();

if (damageMode == XpDropConfig.DamageMode.ABOVE_OPPONENT)
{
Expand All @@ -147,7 +147,7 @@ public void onConfigChanged(ConfigChanged event)
}
else
{
damageMode = config.showdamage();
damageMode = config.showdamagedrops();

if (damageMode != XpDropConfig.DamageMode.ABOVE_OPPONENT)
{
Expand Down Expand Up @@ -343,7 +343,7 @@ public void onExperienceChanged(ExperienceChanged event)
@Subscribe
public void onScriptCallbackEvent(ScriptCallbackEvent e)
{
if (config.showdamage() == XpDropConfig.DamageMode.NONE)
if (config.showdamagedrops() == XpDropConfig.DamageMode.NONE)
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ else if (config.swapNexus() && target.contains("portal nexus"))
swap(client, "teleport menu", option, target, true);
}

if (config.getTempConstruction() && buildingMode)
if (config.getTempConstruction() && buildingMode && !Strings.isNullOrEmpty(config.getTempConstructionItems()))
{
if (event.getType() == WALK.getId())
{
Expand Down

0 comments on commit 83fd69c

Please sign in to comment.