Skip to content

Turtle api question. #796

Answered by SquidDev
SirEndii asked this question in Q&A
May 22, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I can't say for sure, but this block looks pretty concerning:

https://github.com/Seniorendi/AdvancedPeripherals/blob/49fe99e025de770f4a02ab37d502ee007d3b973f/src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/base/BaseTurtle.java#L66-L74

That'll only get triggered once, so if the turtle ever moves you'll have a stale tile entity. Ideally this code wouldn't exist at all and you'd just use ITurtleAccess, though I understand why you're doing this.

That said, not sure why turtle instances are merging into one - nothing in the code looks suspect there.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SirEndii
Comment options

@SquidDev
Comment options

@SirEndii
Comment options

Answer selected by SirEndii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants