mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-03 19:06:27 +01:00
Seats don't Like deployers. They just don't.
This commit is contained in:
parent
8bf82aff79
commit
93973004c8
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue