Skip to content

Commit

Permalink
fix: soul gem always disallowing wither inrregardless of config
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 21, 2023
1 parent 03ed338 commit c0621dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ public InteractionResult interactLivingEntity(ItemStack stack, Player player, Li
if (target.level().isClientSide)
return InteractionResult.PASS;

//Do not allow bosses or players.
//canChangeDimension used to be isNonBoss
if (!target.canChangeDimensions() || target instanceof Player)
//Do not allow players.
if (target instanceof Player)
return InteractionResult.FAIL;

//Already got an entity in there.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ItemSettings(ForgeConfigSpec.Builder builder) {
builder.comment("Item Settings").push("items");

List<String> defaultSoulgemEntityDenyList =
Stream.of("minecraft:wither")
Stream.of("minecraft:wither", "minecraft:ender_dragon")
.collect(Collectors.toList());
this.soulgemEntityTypeDenyList =
builder.comment("Entity types that cannot be captured in a soul gem. Specify by their full id, e.g \"minecraft:zombie\"")
Expand Down

0 comments on commit c0621dc

Please sign in to comment.