mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-06 04:16:36 +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.BlockPos;
|
||||||
import net.minecraft.util.math.Vec3d;
|
import net.minecraft.util.math.Vec3d;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.common.util.FakePlayer;
|
||||||
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
|
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
|
||||||
import net.minecraftforge.fml.network.NetworkHooks;
|
import net.minecraftforge.fml.network.NetworkHooks;
|
||||||
|
|
||||||
|
@ -63,8 +64,9 @@ public class SeatEntity extends Entity implements IEntityAdditionalSpawnData {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean canBeRidden(Entity p_184228_1_) {
|
protected boolean canBeRidden(Entity entity) {
|
||||||
return true;
|
// Fake Players (tested with deployers) have a BUNCH of weird issues, don't let them ride seats
|
||||||
|
return !(entity instanceof FakePlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue