Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 30, 2019
1 parent 35355df commit cd14540
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -1,7 +1,7 @@
package com.denizenscript.denizen.events.entity;

import com.denizenscript.denizen.objects.EntityTag;
import com.denizenscript.denizen.objects.properties.entity.EntityPotionEffects;
import com.denizenscript.denizen.objects.properties.item.ItemPotion;
import com.denizenscript.denizen.utilities.implementation.BukkitScriptEntryData;
import com.denizenscript.denizen.events.BukkitScriptEvent;
import com.denizenscript.denizencore.objects.core.ElementTag;
Expand Down Expand Up @@ -131,10 +131,10 @@ else if (name.equals("override")) {
return new ElementTag(event.isOverride());
}
else if (name.equals("new_effect") && event.getNewEffect() != null) {
return new ElementTag(EntityPotionEffects.stringify(event.getNewEffect()));
return new ElementTag(ItemPotion.stringifyEffect(event.getNewEffect()));
}
else if (name.equals("old_effect") && event.getOldEffect() != null) {
return new ElementTag(EntityPotionEffects.stringify(event.getOldEffect()));
return new ElementTag(ItemPotion.stringifyEffect(event.getOldEffect()));
}
return super.getContext(name);
}
Expand Down
Expand Up @@ -57,7 +57,7 @@ public Lightable getLightable() {

@Override
public String getPropertyString() {
return getLightable().isLit() ? "true" : "false";
return String.valueOf(getLightable().isLit());
}

@Override
Expand Down

0 comments on commit cd14540

Please sign in to comment.