CC: Tweaked

CC: Tweaked

59M Downloads

turtle place up ladder sometimes wrong return value

gogedo opened this issue · 7 comments

commented

Minecraft Version

1.19.x

Version

cc-tweaked-1.19.2-1.101.2

Details

pastebin get Mk5x46k2 test.lua
----- test.lua place up ladder in shaft (Flat Surface)

for i=1,5 do
turtle.digDown()
turtle.down()
print(turtle.placeUp())
end


getting:
false Cannot place block here (ok)
true (ok)
false Cannot place block here (wrong) turtle places the ladder !
false Cannot place block here (wrong) turtle places the ladder !
false Cannot place block here (wrong) turtle places the ladder !

cc-tweaked-1.12.2-1.89.2
getting:
false Cannot place block her (ok)
true (ok)
true (ok)
true (ok)
true (ok)

commented

It is a flat surface in a normal world ATM8 . So first ladder cannot place.
If there is a block in front of turtle all ladders will be placed

commented

I test only with mod cc and all works fine! Must be another matter.

commented

Direwolf20 1.19 1.0.1 same Problem
must be a mod being in both modpacks

commented

Thank you for testing and narrowing it down, that's incredibly helpful! I suspect this is a vanilla plus mod (so something like quark)1 - I'm afraid I'm on holiday right now, but will have a closer look next week.

Footnotes

  1. Just to clarify here, this is almost definitely a CC:T bug, not a problem with the other mod. Just looking for how to reproduce this!

commented

Thank's
It's a miracle that the first ladder placed in shaft get "true" as they could "see" 2 block's above after going down.
I check it out with only print(turtle.placeUp()) on a tree.

Ok, only if there are 2 Blocks above a same kind of ladder then come wrong message
differend ladder or other Block's are correctly.
That's crazy...

commented

Thank you for the report!

I've been unable to reproduce locally (both on 1.19.2 and 1.19.4). On a super-flat world, I get the same output as 1.12.2.

Are you using any mods here, or is this just with CC:T? I wonder if there's a mod which replaces ladder placing logic, and that confuses CC.

commented

Yep, this is caused by Quark's "Enhanced Ladder's" module. They cancel the block placement in order to provide custom behaviour, but this means that the turtle doesn't think the block has been placed.

I actually think this is something that can be fixed on Quark's end - will have a look at putting a PR together.