Skip to content

Commit

Permalink
Fix pigs lightning transformation (#85)
Browse files Browse the repository at this point in the history
* Update dependencies

* Fix that lightning doesn't transform pigs #84

* Reverted update of dependencies. The only difference in build.gradle.kts is now that jitpack is in front of purpurmc repo because it would choose Purpurmc repo which doesn't contain entiddy.

* Add new line
  • Loading branch information
Onako2 authored Oct 5, 2024
1 parent 85f72f2 commit d9fe5bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ repositories {
}

maven {
url = uri("https://repo.purpurmc.org/snapshots")
url = uri("https://jitpack.io")
}

maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
url = uri("https://repo.purpurmc.org/snapshots")
}

maven {
url = uri("https://libraries.minecraft.net")
url = uri("https://papermc.io/repo/repository/maven-public/")
}

maven {
url = uri("https://jitpack.io")
url = uri("https://libraries.minecraft.net")
}

maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.destroystokyo.paper.event.entity.EntityZapEvent;
import me.youhavetrouble.entiddy.Entiddy;
import org.purpurmc.purpurextras.PurpurExtras;
import org.bukkit.Location;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Entity;
Expand All @@ -13,6 +12,7 @@
import org.bukkit.event.Listener;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.purpurmc.purpurextras.PurpurExtras;

import java.util.HashMap;
import java.util.Locale;
Expand All @@ -35,7 +35,7 @@ public class LightningTransformsMobsModule implements PurpurExtrasModule, Listen
protected LightningTransformsMobsModule() {
Map<String, Object> defaults = new HashMap<>();
defaults.put("villager", "witch");
defaults.put("pig", "zombie_piglin");
defaults.put("pig", "zombified_piglin");
ConfigurationSection section = PurpurExtras.getPurpurConfig().getConfigSection("settings.lightning-transforms-entities.entities", defaults);
HashMap<String, String> lightningTransformEntities = new HashMap<>();
for (String key : section.getKeys(false)) {
Expand Down

0 comments on commit d9fe5bf

Please sign in to comment.