mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-01 14:38:47 +00:00
Remove unused code and logging
This commit is contained in:
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()) {
|
||||
|
||||
-6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user