mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed issues when disguising as a friendly creeper
This commit is contained in:
parent
1c32d71d46
commit
1c2560c910
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
import com.minelittlepony.unicopia.entity.Creature;
|
||||
import com.minelittlepony.unicopia.entity.Equine;
|
||||
import com.minelittlepony.unicopia.entity.ai.FleeExplosionGoal;
|
||||
import com.minelittlepony.unicopia.entity.behaviour.Guest;
|
||||
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.client.render.entity.feature.SkinOverlayOwner;
|
||||
|
@ -200,7 +201,7 @@ public class FriendlyCreeperEntity extends TameableEntity implements SkinOverlay
|
|||
|
||||
lastHugTime = hugTime;
|
||||
|
||||
if (!isTamed()) {
|
||||
if (!isTamed() && ((Guest)this).getHost() == null) {
|
||||
if (isConverting()) {
|
||||
if (++hugTime >= 100) {
|
||||
if (!getWorld().isClient) {
|
||||
|
|
Loading…
Reference in a new issue