mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Dispatch SubTileEntity packets manually rather than relying on markBlockForUpdate. Good for performance, should close #734
This commit is contained in:
1 parent
08890e4cfb
commit
12d91ce302
3 files changed
+35
-2
No files matched your search
@@ -23,6 +23,7 @@ import net.minecraft.util.ChunkCoordinates;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.internal.VanillaPacketDispatcher;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.wand.IWandBindable;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -81,7 +82,7 @@ public class SubTileEntity {
|
||||
public void readFromPacketNBT(NBTTagCompound cmp) { }
|
||||
|
||||
public void sync() {
|
||||
supertile.getWorldObj().markBlockForUpdate(supertile.xCoord, supertile.yCoord, supertile.zCoord);
|
||||
VanillaPacketDispatcher.dispatchTEToNearbyPlayers(supertile);
|
||||
}
|
||||
|
||||
public String getUnlocalizedName() {
|
||||
|
||||
Reference in new issue
Block a user