Seats don't Like deployers. They just don't.

This commit is contained in:
grimmauld 2021-03-03 19:33:15 +01:00
parent 8bf82aff79
commit 93973004c8

View file

@ -15,6 +15,7 @@ import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraftforge.common.util.FakePlayer;
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
import net.minecraftforge.fml.network.NetworkHooks;
@ -63,8 +64,9 @@ public class SeatEntity extends Entity implements IEntityAdditionalSpawnData {
}
@Override
protected boolean canBeRidden(Entity p_184228_1_) {
return true;
protected boolean canBeRidden(Entity entity) {
// Fake Players (tested with deployers) have a BUNCH of weird issues, don't let them ride seats
return !(entity instanceof FakePlayer);
}
@Override