mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +00:00
Merge pull request #26 from D-Cysteine/master
Fix NEI mouse position calculation
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -4,6 +4,6 @@ mantle_version=0.3.2.jenkins187
|
||||
CCLIB_version=1.1.3.136
|
||||
NEI_version=1.0.4.106
|
||||
ccc_version=1.0.6.43
|
||||
mod_version=1.9.0.1-GTNH
|
||||
mod_version=1.9.0.2-GTNH
|
||||
waila_version=1.5.3_1.7.10
|
||||
fmp_version=1.1.2.334
|
||||
@@ -125,7 +125,7 @@ public abstract class RecipeHandlerBase extends TemplateRecipeHandler
|
||||
{
|
||||
Point mouse = GuiDraw.getMousePosition();
|
||||
Point offset = guiRecipe.getRecipePosition(recipe);
|
||||
Point relMouse = new Point(mouse.x - ((guiRecipe.width - 176) / 2) - offset.x, mouse.y - ((guiRecipe.height - 166) / 2) - offset.y);
|
||||
Point relMouse = new Point(mouse.x - guiRecipe.guiLeft - offset.x, mouse.y - guiRecipe.guiTop - offset.y);
|
||||
|
||||
if (crecipe.getFluidTanks() != null)
|
||||
{
|
||||
@@ -184,9 +184,9 @@ public abstract class RecipeHandlerBase extends TemplateRecipeHandler
|
||||
protected boolean transferFluidTank (GuiRecipe guiRecipe, int recipe, boolean usage)
|
||||
{
|
||||
CachedBaseRecipe crecipe = (CachedBaseRecipe) this.arecipes.get(recipe);
|
||||
Point mousepos = GuiDraw.getMousePosition();
|
||||
Point mouse = GuiDraw.getMousePosition();
|
||||
Point offset = guiRecipe.getRecipePosition(recipe);
|
||||
Point relMouse = new Point(mousepos.x - ((guiRecipe.width - 176) / 2) - offset.x, mousepos.y - ((guiRecipe.height - 166) / 2) - offset.y);
|
||||
Point relMouse = new Point(mouse.x - guiRecipe.guiLeft - offset.x, mouse.y - guiRecipe.guiTop - offset.y);
|
||||
|
||||
if (crecipe.getFluidTanks() != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user