mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-15 17:44:46 +00:00
remove keep mouse pos
This commit is contained in:
1 parent
c8457bb7d3
commit
bfcf33975c
2 files changed
-23
No files matched your search
@@ -16,7 +16,6 @@ import net.minecraftforge.fluids.*;
|
||||
|
||||
import org.apache.commons.lang3.tuple.ImmutablePair;
|
||||
import org.apache.commons.lang3.tuple.MutablePair;
|
||||
import org.lwjgl.input.Mouse;
|
||||
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.config.Actionable;
|
||||
@@ -53,25 +52,6 @@ import io.netty.buffer.ByteBuf;
|
||||
|
||||
public final class Util {
|
||||
|
||||
public static class MouseHandler {
|
||||
|
||||
private static int mouse_x = 0;
|
||||
private static int mouse_y = 0;
|
||||
|
||||
public static void saveMousePos() {
|
||||
mouse_x = Mouse.getX();
|
||||
mouse_y = Mouse.getY();
|
||||
}
|
||||
|
||||
public static void loadMousePos() {
|
||||
if (mouse_x != 0 && mouse_y != 0) {
|
||||
Mouse.setCursorPosition(mouse_x, mouse_y);
|
||||
mouse_y = 0;
|
||||
mouse_x = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int drainItemPower(AEBaseContainer c, InventoryPlayer ip, int slot, int ticks, double pm,
|
||||
IFluidPortableCell wt) {
|
||||
final ItemStack currentItem = slot < 0 ? ip.getCurrentItem() : ip.getStackInSlot(slot);
|
||||
|
||||
Reference in new issue
Block a user