Skip to content

Commit

Permalink
Update PickUpEggmorphableTargetTask.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureZhen committed May 12, 2022
1 parent 9220a35 commit adb8a82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.common.collect.ImmutableMap;

import mods.cybercat.gigeresque.common.block.GIgBlocks;
import mods.cybercat.gigeresque.common.block.tag.GigBlockTags;
import mods.cybercat.gigeresque.common.entity.ai.brain.memory.MemoryModuleTypes;
import mods.cybercat.gigeresque.common.entity.impl.AdultAlienEntity;
Expand Down Expand Up @@ -33,7 +34,7 @@ protected boolean shouldRun(ServerWorld world, AdultAlienEntity alien) {
return false;
if (EntityUtils.isEggmorphable(target) && !EntityUtils.isFacehuggerAttached(target)) {
return !alien.isCarryingEggmorphableTarget();
} else if (target.world.getBlockState(target.getBlockPos()).isIn(GigBlockTags.RESIN)) {
} else if (target.world.getBlockState(target.getBlockPos()).isOf(GIgBlocks.NEST_RESIN_WEB_CROSS)) {
return false;
} else {
return false;
Expand Down

0 comments on commit adb8a82

Please sign in to comment.