mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 01:16:46 -04:00
target handler: respect camera debug view
This commit is contained in:
parent
e0dd37212f
commit
6e8b1a775c
@ -46,8 +46,8 @@ class TargetHandler(
|
||||
|
||||
|
||||
fun raycast() {
|
||||
val eyePosition = camera.matrixHandler.eyePosition.toVec3d
|
||||
val cameraFront = camera.matrixHandler.cameraFront.toVec3d
|
||||
val eyePosition = camera.matrixHandler.entity.eyePosition.toVec3d
|
||||
val cameraFront = camera.matrixHandler.entity.rotation.front.toVec3d
|
||||
|
||||
target = raycast(eyePosition, cameraFront, blocks = true, fluids = false, entities = true)
|
||||
fluidTarget = raycast(eyePosition, cameraFront, blocks = false, fluids = true, entities = false) as FluidTarget?
|
||||
|
@ -16,3 +16,7 @@
|
||||
# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
|
||||
def stripe_model(data):
|
||||
for property in data:
|
||||
if property is list:
|
||||
|
Loading…
x
Reference in New Issue
Block a user