Skip to content

Commit

Permalink
Remove NetworkProfilingHandler (old debug code for pipes)
Browse files Browse the repository at this point in the history
  • Loading branch information
quat1024 committed Nov 11, 2023
1 parent fc0f1a4 commit 198c32f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import net.minecraft.core.particles.DustParticleOptions;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.ListTag;
import net.minecraft.network.Connection;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.game.ClientGamePacketListener;
import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket;
Expand All @@ -34,7 +33,6 @@

import org.violetmoon.quark.addons.oddities.block.pipe.BasePipeBlock;
import org.violetmoon.quark.addons.oddities.module.PipesModule;
import org.violetmoon.quark.base.client.handler.NetworkProfilingHandler;
import org.violetmoon.quark.base.handler.MiscUtil;
import org.violetmoon.quark.base.handler.QuarkSounds;
import org.violetmoon.quark.base.util.SimpleInventoryBlockEntity;
Expand Down Expand Up @@ -284,12 +282,6 @@ public void dropItem(ItemStack stack, Direction facing, boolean playSound) {
}
}

@Override
public void onDataPacket(Connection net, ClientboundBlockEntityDataPacket packet) {
super.onDataPacket(net, packet);
NetworkProfilingHandler.receive("pipe");
}

public void dropAllItems() {
for (PipeItem item : pipeItems)
dropItem(item.stack);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ public class GeneralConfig {

@Config(description = "Set to true to make the quark big worldgen features such as stone clusters generate as spheres rather than unique shapes. It's faster, but won't look as cool")
public static boolean useFastWorldgen = false;

@Config(description = "Enables quark network profiling features. Do not enable this unless requested to.")
public static boolean enableNetworkProfiling = false;

@Config(description = "Used for terrablender integration")
public static int terrablenderRegionWeight = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.violetmoon.quark.base.client.config.QuarkConfigHomeScreen;
import org.violetmoon.quark.base.client.handler.InventoryButtonHandler;
import org.violetmoon.quark.base.client.handler.ModelHandler;
import org.violetmoon.quark.base.client.handler.NetworkProfilingHandler;
import org.violetmoon.zeta.util.RequiredModTooltipHandler;
import org.violetmoon.quark.base.handler.ContributorRewardHandler;
import org.violetmoon.quark.base.handler.MiscUtil;
Expand Down Expand Up @@ -54,7 +53,6 @@ public void start() {
.subscribe(WoodSetHandler.Client.class);

Quark.ZETA.playBus
.subscribe(NetworkProfilingHandler.class)
.subscribe(ContributorRewardHandler.Client.class)
.subscribe(MiscUtil.Client.class)
.subscribe(InventoryButtonHandler.class)
Expand Down

0 comments on commit 198c32f

Please sign in to comment.