Merge branch 'master' into 1.16
# Conflicts: # gradle.properties # src/main/java/carpet/utils/PerimeterDiagnostics.java # src/main/java/carpet/utils/SpawnReporter.java
This commit is contained in:
commit
b9964c8da8
6 files changed
+13
-5
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
loader_version=0.7.8+build.186
|
loader_version=0.7.8+build.186
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.3.13+v200304
|
mod_version = 1.3.14+v200311
|
||||||
maven_group = carpet
|
maven_group = carpet
|
||||||
archives_base_name = fabric-carpet
|
archives_base_name = fabric-carpet
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import static carpet.settings.RuleCategory.DISPENSER;
|
|||||||
@SuppressWarnings("CanBeFinal")
|
@SuppressWarnings("CanBeFinal")
|
||||||
public class CarpetSettings
|
public class CarpetSettings
|
||||||
{
|
{
|
||||||
public static final String carpetVersion = "1.3.13+v200304";
|
public static final String carpetVersion = "1.3.14+v200311";
|
||||||
public static final Logger LOG = LogManager.getLogger();
|
public static final Logger LOG = LogManager.getLogger();
|
||||||
public static boolean skipGenerationChecks = false;
|
public static boolean skipGenerationChecks = false;
|
||||||
public static boolean impendingFillSkipUpdates = false;
|
public static boolean impendingFillSkipUpdates = false;
|
||||||
|
|||||||
@@ -1088,6 +1088,9 @@ public class CarpetExpression
|
|||||||
this.expr.addLazyFunction("see_sky", -1, (c, t, lv) ->
|
this.expr.addLazyFunction("see_sky", -1, (c, t, lv) ->
|
||||||
genericStateTest(c, "see_sky", lv, (s, p, w) -> new NumericValue(w.isSkyVisible(p))));
|
genericStateTest(c, "see_sky", lv, (s, p, w) -> new NumericValue(w.isSkyVisible(p))));
|
||||||
|
|
||||||
|
this.expr.addLazyFunction("brightness", -1, (c, t, lv) ->
|
||||||
|
genericStateTest(c, "brightness", lv, (s, p, w) -> new NumericValue(w.getBrightness(p))));
|
||||||
|
|
||||||
this.expr.addLazyFunction("hardness", -1, (c, t, lv) ->
|
this.expr.addLazyFunction("hardness", -1, (c, t, lv) ->
|
||||||
genericStateTest(c, "hardness", lv, (s, p, w) -> new NumericValue(s.getHardness(w, p))));
|
genericStateTest(c, "hardness", lv, (s, p, w) -> new NumericValue(s.getHardness(w, p))));
|
||||||
|
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ public class PerimeterDiagnostics
|
|||||||
if (SpawnHelper.canSpawn(spt, worldServer, pos, sle.type))
|
if (SpawnHelper.canSpawn(spt, worldServer, pos, sle.type))
|
||||||
{
|
{
|
||||||
el.refreshPositionAndAngles((float)pos.getX() + 0.5F, (float)pos.getY(), (float)pos.getZ()+0.5F, 0.0F, 0.0F);
|
el.refreshPositionAndAngles((float)pos.getX() + 0.5F, (float)pos.getY(), (float)pos.getZ()+0.5F, 0.0F, 0.0F);
|
||||||
return el.canSpawn(worldServer) &&
|
return el.canSpawn(worldServer) && el.canSpawn(worldServer, SpawnType.NATURAL) &&
|
||||||
SpawnRestriction.canSpawn(el.getType(),el.getEntityWorld(), SpawnType.NATURAL, el.getSenseCenterPos(), el.getEntityWorld().random) &&
|
SpawnRestriction.canSpawn(el.getType(),el.getEntityWorld(), SpawnType.NATURAL, el.getSenseCenterPos(), el.getEntityWorld().random) &&
|
||||||
worldServer.doesNotCollide(el); // check collision rules once they stop fiddling with them after 1.14.1
|
worldServer.doesNotCollide(el); // check collision rules once they stop fiddling with them after 1.14.1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -436,10 +436,15 @@ public class SpawnReporter
|
|||||||
float f1 = (float)z + 0.5F;
|
float f1 = (float)z + 0.5F;
|
||||||
mob.refreshPositionAndAngles((double)f, (double)y, (double)f1, worldIn.random.nextFloat() * 360.0F, 0.0F);
|
mob.refreshPositionAndAngles((double)f, (double)y, (double)f1, worldIn.random.nextFloat() * 360.0F, 0.0F);
|
||||||
fits1 = worldIn.doesNotCollide(mob);
|
fits1 = worldIn.doesNotCollide(mob);
|
||||||
|
EntityType etype = mob.getType();
|
||||||
|
|
||||||
for (int i = 0; i < 20; ++i)
|
for (int i = 0; i < 20; ++i)
|
||||||
{
|
{
|
||||||
if (SpawnRestriction.canSpawn(mob.getType(),mob.getEntityWorld(), SpawnType.NATURAL, mob.getSenseCenterPos(), mob.getEntityWorld().random))
|
if (
|
||||||
|
SpawnRestriction.canSpawn(etype,worldIn, SpawnType.NATURAL, pos, worldIn.random) &&
|
||||||
|
SpawnHelper.canSpawn(SpawnRestriction.getLocation(etype), worldIn, pos, etype) &&
|
||||||
|
mob.canSpawn(worldIn, SpawnType.NATURAL) // && mob.canSpawn(worldIn) // entity collisions
|
||||||
|
)
|
||||||
{
|
{
|
||||||
will_spawn += 1;
|
will_spawn += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "carpet",
|
"id": "carpet",
|
||||||
"version": "1.3.13",
|
"version": "1.3.14",
|
||||||
|
|
||||||
"name": "Carpet Mod in Fabric",
|
"name": "Carpet Mod in Fabric",
|
||||||
"description": "Carpet made out of fabric",
|
"description": "Carpet made out of fabric",
|
||||||
|
|||||||
Reference in new issue
Block a user