Fix Certus Quartz fluid flickering and sometimes rendering an incorrect amount of fluid, optimize packet sending and ticking (#348)

Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
danyadevandMartin Robertz authored and GitHub committed 2025-11-14 23:20:19 +01:00
1 parent 219f8c313a
commit 2e6bfe6aac
4 files changed
+62 -98

No files matched your search

@@ -1,9 +1,5 @@
package com.glodblock.github.loader;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.Packet;
import net.minecraft.world.World;
import com.glodblock.github.FluidCraft;
import com.glodblock.github.network.CPacketCraftRequest;
import com.glodblock.github.network.CPacketDumpTank;
@@ -100,12 +96,4 @@ public class ChannelLoader implements Runnable {
id++,
Side.CLIENT);
}
public static void sendPacketToAllPlayers(Packet packet, World world) {
for (Object player : world.playerEntities) {
if (player instanceof EntityPlayerMP) {
((EntityPlayerMP) player).playerNetServerHandler.sendPacket(packet);
}
}
}
}