shadowfacts / shadowfacts.github.io

My website
https://shadowfacts.net
6 stars 4 forks source link

Mark TileEntity dirty #3

Closed sargunv closed 7 years ago

sargunv commented 7 years ago

In your TileEntity tutorial, you forgot to call markDirty() to ensure the changes to the counter are saved.

https://shadowfacts.net/tutorials/forge-modding-111/tile-entities/

public void incrementCount() {
    count++;
    this.markDirty();
}
shadowfacts commented 7 years ago

Thanks for letting me know!