mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-04 11:27:56 +00:00
Fix turtle place bucket in the wrong block
This commit is contained in:
@@ -16,6 +16,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.server.world.ServerWorld;
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.Direction;
|
import net.minecraft.util.math.Direction;
|
||||||
|
import net.minecraft.util.math.Vec3d;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
@@ -110,4 +111,12 @@ public final class TurtlePlayer extends FakePlayer
|
|||||||
inventory.markDirty();
|
inventory.markDirty();
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Vec3d getCameraPosVec(float float_1) {
|
||||||
|
y-=getStandingEyeHeight();
|
||||||
|
Vec3d r = super.getCameraPosVec(float_1);
|
||||||
|
y+=getStandingEyeHeight();
|
||||||
|
return r;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user