mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
Update BukkitServerPlayer.java
This commit is contained in:
@@ -546,7 +546,7 @@ public class BukkitServerPlayer extends Player {
|
|||||||
Object mountPos = FastNMS.INSTANCE.method$Entity$getPassengerRidingPosition(FastNMS.INSTANCE.method$CraftEntity$getHandle(vehicle), serverPlayer);
|
Object mountPos = FastNMS.INSTANCE.method$Entity$getPassengerRidingPosition(FastNMS.INSTANCE.method$CraftEntity$getHandle(vehicle), serverPlayer);
|
||||||
unsureEyeLocation.set(FastNMS.INSTANCE.field$Vec3$x(mountPos), FastNMS.INSTANCE.field$Vec3$y(mountPos) + bukkitPlayer.getEyeHeight(), FastNMS.INSTANCE.field$Vec3$z(mountPos));
|
unsureEyeLocation.set(FastNMS.INSTANCE.field$Vec3$x(mountPos), FastNMS.INSTANCE.field$Vec3$y(mountPos) + bukkitPlayer.getEyeHeight(), FastNMS.INSTANCE.field$Vec3$z(mountPos));
|
||||||
}
|
}
|
||||||
if (Config.predictBreaking() && !this.isDestroyingCustomBlock && !unsureEyeLocation.equals(this.eyeLocation)) {
|
if (Config.predictBreaking() && this.eyeLocation != null && !this.isDestroyingCustomBlock && !unsureEyeLocation.equals(this.eyeLocation)) {
|
||||||
// if it's not destroying blocks, we do predict
|
// if it's not destroying blocks, we do predict
|
||||||
if ((gameTicks() + entityID()) % Config.predictBreakingInterval() == 0) {
|
if ((gameTicks() + entityID()) % Config.predictBreakingInterval() == 0) {
|
||||||
this.predictNextBlockToMine();
|
this.predictNextBlockToMine();
|
||||||
|
|||||||
Reference in New Issue
Block a user