Skip to content

Prevent turtles moving beyond the world border#520

Open
SquidDev wants to merge 1 commit intodan200:masterfrom
SquidDev-CC:hotfix/turtle-world-border
Open

Prevent turtles moving beyond the world border#520
SquidDev wants to merge 1 commit intodan200:masterfrom
SquidDev-CC:hotfix/turtle-world-border

Conversation

@SquidDev
Copy link
Copy Markdown
Contributor

As tiles outside the world border are not ticked, turtles are rendered entirely useless. Furthermore, the turtle animation will never progress resulting in visual glitches.

In order to avoid this, we ensure the target position is within the world border when moving to it.

As tiles outside the world border are not ticked, turtles are rendered
entirely useless. Furthermore, the turtle animation will never progress
resulting in visual glitches.

In order to avoid this, we ensure the target position is within the
world border when moving to it.
import dan200.computercraft.shared.util.WorldUtil;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.util.EnumFacing;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this line moved? I assume the move has no effect and just makes the commit a bit messy.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because my IDE likes to put things in alphabetical order. I'm going to be honest, I can't really muster the energy to fix it.

@thatcraniumguy
Copy link
Copy Markdown

Can one of the admins verify this patch?

ccserver pushed a commit to ccserver/ComputerCraft that referenced this pull request Sep 16, 2019
…urtle-world-border

Prevent turtles moving beyond the world border
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants