mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 20:52:22 +00:00
Minor cleanups (#50)
* Finalize, minor alloc reduction Also enable Jabel and generic injection * Update dependencies.gradle * Clean up Machine a bit * spotless more enhanced instanceof * Update ModuleMachine.java * More clen * WARN: Removed exception catching * Many, many tiny patches + birthday fix * Spotless * Spotless again * Fix getLow and clamp tolerance value * Revert event -> ignored on unused event parameters * Rename instanceof variables * Update Machine.java * Use StringBuilder * Cache getStack() * Oops, Jabel can't handle that * Spotless * Spotless again My IDE was fighting with it * Remove unused elements + scream test success
This commit is contained in:
1 parent
6b4f3eb1c7
commit
f0f14bb278
325 files changed
+1205
-1868
No files matched your search
@@ -213,11 +213,7 @@ public class TileEntityFlower extends TileEntity implements IPollinatable, IButt
|
||||
return;
|
||||
}
|
||||
|
||||
if (!canTolerate || light < 1.0f) {
|
||||
flower.setWilted(true);
|
||||
} else {
|
||||
flower.setWilted(false);
|
||||
}
|
||||
flower.setWilted(!canTolerate || light < 1.0f);
|
||||
|
||||
float chanceDispersal = 0.8f;
|
||||
chanceDispersal += 0.2f * flower.getGenome().getFertility();
|
||||
@@ -302,7 +298,7 @@ public class TileEntityFlower extends TileEntity implements IPollinatable, IButt
|
||||
public void updateRender(boolean update) {
|
||||
if (update && getFlower() != null && getFlower().getGenome() != null) {
|
||||
RenderInfo newInfo = new RenderInfo(getFlower(), this);
|
||||
if (renderInfo == null || !newInfo.equals(renderInfo)) {
|
||||
if (!newInfo.equals(renderInfo)) {
|
||||
setRender(newInfo);
|
||||
}
|
||||
}
|
||||
@@ -619,8 +615,7 @@ public class TileEntityFlower extends TileEntity implements IPollinatable, IButt
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof RenderInfo) {
|
||||
RenderInfo o = (RenderInfo) obj;
|
||||
if (obj instanceof RenderInfo o) {
|
||||
return o.age == age && o.wilted == wilted
|
||||
&& o.flowered == flowered
|
||||
&& o.primary == primary
|
||||
|
||||
Reference in new issue
Block a user