mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
22 lines
622 B
Java
22 lines
622 B
Java
package tconstruct.client;
|
|
|
|
import net.minecraft.util.IIcon;
|
|
|
|
// required to fix Mojansg bugs...
|
|
public class IconFlipped extends net.minecraft.client.renderer.IconFlipped {
|
|
private final IIcon baseIcon;
|
|
private final boolean flipV;
|
|
|
|
public IconFlipped(IIcon p_i1560_1_, boolean p_i1560_2_, boolean p_i1560_3_) {
|
|
super(p_i1560_1_, p_i1560_2_, p_i1560_3_);
|
|
|
|
this.baseIcon = p_i1560_1_;
|
|
this.flipV = p_i1560_3_;
|
|
}
|
|
|
|
// has a faulty implementation in original class
|
|
public float getMinV() {
|
|
return this.flipV ? this.baseIcon.getMaxV() : this.baseIcon.getMinV();
|
|
}
|
|
}
|