Closed ArtelGG closed 2 months ago
Are users really hiding things in these (temporary) slots?
There are instances where users who are trying to hide an item will pick the item up in their cursor to hide it from others (most likely staff) trying to find said item until they give up. Also, some modified clients can make it so the four crafting slots can be changed to store items rather than drop them when the inventory is closed.
1 and 2 I'll look into. 3 is included in #54 to a degree, probably more in line for an addon. Offhand slot is already handled. I won't show the crafting result slot - that should not be insertable by the client. If it is, that's really on the server implementation to prevent. I believe actual anticheat features to be outside of the scope of OI.
1 and 2 I'll look into. 3 is included in #54 to a degree, probably more in line for an addon. Offhand slot is already handled. I won't show the crafting result slot - that should not be insertable by the client. If it is, that's really on the server implementation to prevent. I believe actual anticheat features to be outside of the scope of OI.
Sounds good. If the crafting result slot is just a simple grab of a slot ID think you could implement it anyway?
There's no reason to show the crafting result slot if the client can't store an item in there, which I see no reason why it would be able to.
Sounds good. If the crafting result slot is just a simple grab of a slot ID think you could implement it anyway?
After some thought, no. It looks simple, but then you start to consider what do we do if the viewer modifies the result. Do we rewrite all of OpenInv's click handling so the viewer can't modify the result slot? Do we "craft" the item, and do we then have to manually include all crafting logic? Gets messy and time-consuming very quickly.
The server should be rejecting inserts to that slot, so there's no need for it. It's not a simple addition.
OI now offers a view of the crafting slots and cursor. If the player's inventory is the expected size, a view of the result is also available. The result view is only for clarity of what the player is doing, and is not editable.
Here's a list of things you guys should try to add for online players' inventories: