1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-28 16:13:22 +00:00
CC-Tweaked/src/main/resources/assets/computercraft/lua
SquidDev 259665d9f1 Add a more strict form of IPocketAccess.getEntity
Before IPocketAccess.getEntity would return the entity which last held
fthis computer, even if not holding it any more. As
ba823bae13 describes, this caused
pocket.equip/pocket.unequip to dupe items.

We move the validation from the PocketAPI into the main IPocketAccess
implementation, to ensure this issue does not occur elsewhere. Note, we
require a separate method, as this is no longer thread-safe.

We also now return ok, err instead of throwing an exception, in order to
be consistent with the turtle functions. See dan200/ComputerCraft#328.
2019-03-16 11:18:03 +00:00
..
rom Add a more strict form of IPocketAccess.getEntity 2019-03-16 11:18:03 +00:00
treasure The big massive reformat 2018-12-17 18:09:31 +00:00
bios.lua Some changes to Lua machines and string loading 2019-03-10 12:24:55 +00:00