diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-04 22:11:07 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-04 22:11:07 +0800 |
| commit | 721ea24a226c2dca5cfef4b3f638d251547df0b8 (patch) | |
| tree | 76c9d8c2790db8730c95af2d250a4b062df1215a /src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java | |
| parent | 82225991887f55047d161a18e6fa19f798c0ba67 (diff) | |
| download | RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.gz RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.bz2 RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.zip | |
yes thank you
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java index 3e6ab9d7f..72f265a97 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java @@ -81,7 +81,7 @@ public abstract class ButtonWidget extends WidgetWithBounds { blit(x + 4, y + height - 4, 4, textureOffset * 80 + 76, MathHelper.ceil((width - 8) / 2f), 4); blit(x + 4 + MathHelper.ceil((width - 8) / 2f), y + height - 4, 252 - MathHelper.floor((width - 8) / 2f), textureOffset * 80 + 76, MathHelper.floor((width - 8) / 2f), 4); blit(x + 4 + MathHelper.ceil((width - 8) / 2f), y, 252 - MathHelper.floor((width - 8) / 2f), textureOffset * 80, MathHelper.floor((width - 8) / 2f), 4); - for(int i = y + 4; i < y + height - 4; i += 76) { + for (int i = y + 4; i < y + height - 4; i += 76) { blit(x, i, 0, 4 + textureOffset * 80, MathHelper.ceil(width / 2f), MathHelper.clamp(y + height - 4 - i, 0, 76)); blit(x + MathHelper.ceil(width / 2f), i, 256 - MathHelper.floor(width / 2f), 4 + textureOffset * 80, MathHelper.floor(width / 2f), MathHelper.clamp(y + height - 4 - i, 0, 76)); } |
