Remove unused code and logging

This commit is contained in:
MrMelon54 committed 2025-02-02 14:34:09 +00:00
1 parent bd0f3eaefe
commit 75c3300810
2 files changed
-7

No files matched your search

@@ -92,7 +92,6 @@ public class DragManager<T, E extends ObjectSelectionList.Entry<?>> {
for (int i = 0; i < n; i++) {
int renderRow = otherItemIndexShift(i, draggingIndex, draggedPosition);
System.out.println("real: " + i + " / renderRow: " + renderRow + " / selected: " + draggingIndex);
int rowTop = dragList.draggable_lists$getRowTop(renderRow);
int rowBottom = dragList.draggable_lists$getRowBottom(renderRow);
if (rowBottom >= dragList.draggable_lists$getY() && rowTop <= dragList.draggable_lists$getBottom()) {
@@ -30,12 +30,6 @@ public abstract class TransferableSelectionList_PackEntryMixin extends ObjectSel
@Unique
private boolean draggable_lists$isBeingDragged = false;
@Inject(method = "render", at = @At("HEAD"), cancellable = true)
public void render(GuiGraphics guiGraphics, int i, int j, int k, int l, int m, int n, int o, boolean bl, float f, CallbackInfo ci) {
if (draggable_lists$isBeingDragged)
ci.cancel();
}
@WrapWithCondition(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 4))
public boolean removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
return !DraggableLists.CONFIG.disableResourcePackArrows;