-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix turtle canEnter logic #1051
base: 1.18.x/main
Are you sure you want to change the base?
Conversation
.anyMatch(BlockState::isAir); | ||
.map(pos -> new BlockPos(ValkyrienSkies.toMinecraft(pos))) | ||
// Ignore turtle itself | ||
.filter(pos -> !pos.equals(turtlePlayer.blockPosition())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know if there are better way to do this, because if the turtle is on a ship, blockPosition seems will return the turtle position in actual world, but it should return a shipyard position I'm not sure?
Are these first two Streams.stream(ValkyrienSkies.positionToNearbyShipsAndWorld(world, position.getX() + 0.5, position.getY() + 0.5, position.getZ() + 0.5, 0.1))
.map(pos -> ValkyrienSkies.getShipManagingBlock(world, pos))
.map(s -> ValkyrienSkies.positionToShip(s, new Vector3d(position.getX() + 0.5, position.getY() + 0.5, position.getZ() + 0.5))) Streams.stream(ValkyrienSkies.positionToNearbyShipsAndWorld(world, position.getX() + 0.5, position.getY() + 0.5, position.getZ() + 0.5, 0.1)) |
I don't know actually? if you sure they are same then I'll remove extra maps |
I have no idea that what position is |
Can you test the code in
|
uhh i do not know how to test this. I can build this mod but it's unable load in game |
I'll try again tomorrow anyway. |
Yeah I need Eureka to create ship, I don't know if I can make a ship by vs2 itself, but if you can provide any information it will be helpful. |
Please do not modify the build files in your PR. You can create a ship using the ship creator item in the creative menu. |
Uh but without strict kotlin version I cannot build the mod?
|
So without eureka there still problem when I create/load a world: |
@Rubydesic Any updates? |
The crash report I seem to remember is krunch not having enough (un-allocated?) RAM. I think somewhere theres a file that controls how much RAM is allocated while testing, maybe its more than your computers RAM? (Or I'm completely wrong and the crash is something different) |
No description provided.