1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

optimize applying block changes

This commit is contained in:
p2r3
2025-08-14 07:25:38 +03:00
parent 106e3e9ba2
commit 374943669e
2 changed files with 38 additions and 9 deletions

View File

@@ -256,7 +256,6 @@ int givePlayerItem (int client_fd, uint16_t item) {
}
uint8_t getBlockChange (short x, short y, short z) {
short tmp;
for (int i = 0; i < block_changes_count; i ++) {
if (block_changes[i].block == 0xFF) continue;
if (
@@ -270,7 +269,6 @@ uint8_t getBlockChange (short x, short y, short z) {
void makeBlockChange (short x, short y, short z, uint8_t block) {
short tmp;
for (int i = 0; i < block_changes_count; i ++) {
if (
block_changes[i].x == x &&