Fixed issues when disguising as a friendly creeper

This commit is contained in:
Sollace 2024-02-14 23:46:40 +00:00
parent 1c32d71d46
commit 1c2560c910
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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) {