Skip to content

Commit

Permalink
Added new icon
Browse files Browse the repository at this point in the history
Updated banner with new features
  • Loading branch information
Insane96 committed Dec 8, 2020
1 parent b69aa62 commit 821d5d8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Binary file modified banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified banner.psd
Binary file not shown.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon.psd
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public static void setStats(EntityJoinWorldEvent event) {

tags.putBoolean("progressivebosses:processed", true);

fixBedrockStuck(wither);

int radius = ModConfig.COMMON.wither.general.spawnRadiusPlayerCheck.get();
BlockPos pos1 = wither.getPosition().add(-radius, -radius, -radius);
BlockPos pos2 = wither.getPosition().add(radius, radius, radius);
Expand Down Expand Up @@ -100,6 +98,9 @@ private static void fixBedrockStuck(WitherEntity wither) {
if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(wither.world, wither))
return;

//if (!wither.isEntityInsideOpaqueBlock())
//return;

Stream<BlockPos> blocks = BlockPos.getAllInBox(wither.getPosition().add(-1, -1, -1), wither.getPosition().add(1, 4, 1));
AtomicBoolean flag = new AtomicBoolean(false);
blocks.forEach(pos -> {
Expand Down Expand Up @@ -154,6 +155,7 @@ public static void update(LivingEvent.LivingUpdateEvent event) {
return;

if (wither.getInvulTime() == 1){
fixBedrockStuck(wither);
explode(wither);
}

Expand Down

0 comments on commit 821d5d8

Please sign in to comment.