mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Fix JABBA-related issues with crafting station slots (#54)
* 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
This commit is contained in:
1 parent
18bfeaff32
commit
39be06c23b
571 files changed
+25959
-28223
No files matched your search
@@ -2,34 +2,28 @@ package tconstruct.world.gen;
|
||||
|
||||
import net.minecraft.world.WorldProvider;
|
||||
|
||||
public class OverworldProvider extends WorldProvider
|
||||
{
|
||||
public class OverworldProvider extends WorldProvider {
|
||||
|
||||
@Override
|
||||
public String getDimensionName ()
|
||||
{
|
||||
public String getDimensionName() {
|
||||
return "Overworld";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getWorldHasVoidParticles ()
|
||||
{
|
||||
public boolean getWorldHasVoidParticles() {
|
||||
return this.terrainType.hasVoidParticles(this.hasNoSky);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calculateCelestialAngle (long worldtime, float par3)
|
||||
{
|
||||
public float calculateCelestialAngle(long worldtime, float par3) {
|
||||
int timeOfDay = 18000;
|
||||
float f1 = ((float) timeOfDay + par3) / 24000.0F - 0.25F;
|
||||
|
||||
if (f1 < 0.0F)
|
||||
{
|
||||
if (f1 < 0.0F) {
|
||||
++f1;
|
||||
}
|
||||
|
||||
if (f1 > 1.0F)
|
||||
{
|
||||
if (f1 > 1.0F) {
|
||||
--f1;
|
||||
}
|
||||
|
||||
@@ -43,14 +37,14 @@ public class OverworldProvider extends WorldProvider
|
||||
* public float calculateCelestialAngle(long worldtime, float par3) { int
|
||||
* timeOfDay = (int)(worldtime % 43200L); float f1 = ((float)timeOfDay +
|
||||
* par3) / 43200.0F - 0.25F;
|
||||
*
|
||||
*
|
||||
* if (f1 < 0.0F) { ++f1; }
|
||||
*
|
||||
*
|
||||
* if (f1 > 1.0F) { --f1; }
|
||||
*
|
||||
*
|
||||
* float f2 = f1; f1 = 1.0F - (float)((Math.cos((double)f1 * Math.PI) +
|
||||
* 1.0D) / 2.0D); f1 = f2 + (f1 - f2) / 3.0F; return f1; }
|
||||
*
|
||||
*
|
||||
* public int getMoonPhase(long par1) { return (int)(par1 / 43200L) % 8; }
|
||||
*/
|
||||
}
|
||||
Reference in new issue
Block a user