Skip to content

Commit

Permalink
Merge pull request #359 from RUGMJ/rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
RUGMJ authored Jan 21, 2024
2 parents 6a453ad + 45a6f0b commit f0f04d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemUsageContext;
Expand Down Expand Up @@ -69,7 +68,8 @@ public void injectCommand(String message, CallbackInfo ci) {

Feedback addCommandFeedback = ItemBindFeature.addCommand(message);
if (addCommandFeedback != null) {
INJECTOR.getInstance(FeedbackSender.class).sendFeedback(((Entity) ((Object)this)).getCommandSource(),addCommandFeedback);
INJECTOR.getInstance(FeedbackSender.class).sendFeedback(
MinecraftClient.getInstance().getServer().getCommandSource(), addCommandFeedback);
ci.cancel();
}
}
Expand Down

0 comments on commit f0f04d7

Please sign in to comment.