JheffersonMarques / MorePeripherals

Adds new peripherals for CC:Tweaked
MIT License
8 stars 2 forks source link

Spawner duplication bug #17

Closed crazyvinvin closed 1 year ago

crazyvinvin commented 1 year ago

Spawner duplication bug

Hello again! We found a duplication bug for spawners with spawner.captureSpawner().

Steps to reproduce

Setup like this: image

Run in terminal:

lua
spawner = peripheral.wrap("back")
spawner.captureSpawner()

This drops one spawner, which is obviously the idea. However, rerunning:

spawner.captureSpawner()

Keeps dropping spawners. So this:

while true do
    spawner.captureSpawner()
end

Will remove one spawner block and turn it into an entity item and then keep dropping infinite spawner items on the ground.

JheffersonMarques commented 1 year ago

well, maybe i will need to make the spawner be inserted as an item and delete the block completely

JheffersonMarques commented 1 year ago

Fixed in Dev