TerraFirmaCraft

TerraFirmaCraft

3M Downloads

Rotten food can be reset under specific conditions

Murph2 opened this issue ยท 3 comments

commented

Multiplayer specific? issue.

How to recreate:

Make food, ive been using sandwiches.
Log off before the expiry date passes.
let the servers time tick until it would normally expire.
log on, the food will not 'look' rotten but it will have no expiration date. (when it is ticked it instantly rots)
before this happens, simply throw it out of your inventory into the world, it will gain whatever expiration date it had when you logged off.

commented

(when it is ticked it instantly rots)

Food does not tick, so this is meaningless

let the servers time tick until it would normally expire.

Food does not expire when there are no players logged on, because server time does not tick

it will gain whatever expiration date it had when you logged off.

Yeah, that would be the expected behavior if you logged off, no time would've passed, followed by you logging on, and the expiration date would still be the same. And it is exactly what happens when I try and reproduce this issue, as intended.


There's a chance you're seeing or describing a completely unrelated issue (such as a desync that makes some food initially appear rotten upon logging in) but without any actual usable reproduction steps there's nothing here to address.

commented

I think i phrased this incorrectly, food normally rots upon logging in. But if you throw it down it resets and no longer rots

commented

This is on a multiplayer server, so food does in fact rot while you are offline