20w19a
This commit is contained in:
1 parent
08d48e765d
commit
db813ee29b
4 files changed
+12
-3
No files matched your search
+2
-2
@@ -4,8 +4,8 @@ org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/use
|
||||
# or better: https://modmuss50.me/fabric.html
|
||||
minecraft_version=20w18a
|
||||
yarn_mappings=20w18a+build.14
|
||||
minecraft_version=20w19a
|
||||
yarn_mappings=20w19a+build.1
|
||||
loader_version=0.8.2+build.194
|
||||
|
||||
# Mod Properties
|
||||
|
||||
@@ -3,6 +3,7 @@ package carpet.mixins;
|
||||
import carpet.fakes.SpawnHelperInnerInterface;
|
||||
import carpet.utils.SpawnReporter;
|
||||
import it.unimi.dsi.fastutil.objects.Object2IntMap;
|
||||
import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
|
||||
import net.minecraft.entity.EntityCategory;
|
||||
import net.minecraft.util.math.GravityField;
|
||||
import net.minecraft.world.SpawnHelper;
|
||||
@@ -26,7 +27,7 @@ public class SpawnHelperInnerMixin implements SpawnHelperInnerInterface
|
||||
|
||||
@Shadow @Final private int spawningChunkCount;
|
||||
|
||||
@Shadow @Final private Object2IntMap<EntityCategory> categoryToCount;
|
||||
@Shadow @Final private Object2IntOpenHashMap<EntityCategory> categoryToCount;
|
||||
|
||||
@Shadow @Final private GravityField densityField;
|
||||
|
||||
|
||||
@@ -112,6 +112,8 @@ public class Messenger
|
||||
return "f";
|
||||
case WATER_CREATURE:
|
||||
return "v";
|
||||
case WATER_AMBIENT:
|
||||
return "q";
|
||||
}
|
||||
return "w";
|
||||
}
|
||||
|
||||
@@ -215,6 +215,8 @@ public class SpawnReporter
|
||||
return EntityCategory.WATER_CREATURE;
|
||||
case BROWN:
|
||||
return EntityCategory.AMBIENT;
|
||||
case CYAN:
|
||||
return EntityCategory.WATER_AMBIENT;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -233,6 +235,10 @@ public class SpawnReporter
|
||||
{
|
||||
return EntityCategory.WATER_CREATURE;
|
||||
}
|
||||
else if ("fish".equalsIgnoreCase(type_code))
|
||||
{
|
||||
return EntityCategory.WATER_AMBIENT;
|
||||
}
|
||||
else if ("ambient".equalsIgnoreCase(type_code))
|
||||
{
|
||||
return EntityCategory.AMBIENT;
|
||||
|
||||
Reference in new issue
Block a user