Skip to content

Commit 758f9ca

Browse files
committed
Updated changelog, bumped versions
1 parent 280096b commit 758f9ca

File tree

7 files changed

+70
-23
lines changed

7 files changed

+70
-23
lines changed

.github/versions.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"1.19.2": "1.5.10",
3-
"1.19.1": "1.5.10",
4-
"1.19": "1.5.10",
2+
"1.19.2": "1.5.11",
3+
"1.19.1": "1.5.11",
4+
"1.19": "1.5.11",
55
"1.18.2": "1.4.5",
66
"1.18.1": "1.2.5",
77
"1.18": "1.2.5"

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## mc1.19.2-1.5.11, September 30, 2022
2+
3+
- Glare is now breedable (it can have children)
4+
- Updated translations
5+
- Added config option to enable/disable glare griefing
6+
17
## mc1.19.2-1.5.10, September 09, 2022
28

39
- Fixed incompatibility with YOUNG mods

common/src/main/java/com/faboslav/friendsandfoes/api/IllusionerEntityAccess.java common/src/main/java/com/faboslav/friendsandfoes/advancements/api/IllusionerEntityAccess.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.faboslav.friendsandfoes.api;
1+
package com.faboslav.friendsandfoes.advancements.api;
22

33
import com.faboslav.friendsandfoes.mixin.IllusionerEntityMixin;
44
import net.minecraft.entity.mob.IllusionerEntity;

common/src/main/java/com/faboslav/friendsandfoes/client/render/entity/model/GlareEntityModel.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,16 @@ private void animateLayers(
196196
}
197197

198198
@Override
199-
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) {
199+
public void render(
200+
MatrixStack matrices,
201+
VertexConsumer vertices,
202+
int light,
203+
int overlay,
204+
float red,
205+
float green,
206+
float blue,
207+
float alpha
208+
) {
200209
this.getPart().render(matrices, vertices, light, overlay, red, green, blue, alpha);
201210
}
202211
}

common/src/main/java/com/faboslav/friendsandfoes/entity/ai/goal/BeePollinateMoobloomGoal.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void tick() {
146146
}
147147
}
148148

149-
protected void pollinate() {
149+
private void pollinate() {
150150
for (int i = 0; i < 7; ++i) {
151151
double d = this.beeEntity.getRandom().nextGaussian() * 0.02D;
152152
double e = this.beeEntity.getRandom().nextGaussian() * 0.02D;
@@ -195,15 +195,15 @@ private Vec3d getMoobloomPollinationPos() {
195195
);
196196
}
197197

198-
protected boolean completedPollination() {
198+
private boolean completedPollination() {
199199
return this.pollinationTicks > 200;
200200
}
201201

202-
protected boolean isRunning() {
202+
private boolean isRunning() {
203203
return this.running;
204204
}
205205

206-
protected void setIsRunning(boolean isRunning) {
206+
private void setIsRunning(boolean isRunning) {
207207
this.running = isRunning;
208208
}
209209

common/src/main/java/com/faboslav/friendsandfoes/mixin/IllusionerEntityMixin.java

+39-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.faboslav.friendsandfoes.mixin;
22

33
import com.faboslav.friendsandfoes.FriendsAndFoes;
4-
import com.faboslav.friendsandfoes.api.IllusionerEntityAccess;
4+
import com.faboslav.friendsandfoes.advancements.api.IllusionerEntityAccess;
55
import com.faboslav.friendsandfoes.util.RandomGenerator;
66
import net.minecraft.entity.EntityType;
77
import net.minecraft.entity.EquipmentSlot;
@@ -72,6 +72,11 @@ protected IllusionerEntityMixin(
7272
@Override
7373
public void initDataTracker() {
7474
super.initDataTracker();
75+
76+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
77+
return;
78+
}
79+
7580
this.dataTracker.startTracking(IS_ILLUSION, false);
7681
this.dataTracker.startTracking(WAS_ATTACKED, false);
7782
this.dataTracker.startTracking(TICKS_UNTIL_DESPAWN, 0);
@@ -81,6 +86,11 @@ public void initDataTracker() {
8186
@Override
8287
public void writeCustomDataToNbt(NbtCompound nbt) {
8388
super.writeCustomDataToNbt(nbt);
89+
90+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
91+
return;
92+
}
93+
8494
nbt.putBoolean(IS_ILLUSION_NBT_NAME, this.isIllusion());
8595
nbt.putBoolean(WAS_ATTACKED_NBT_NAME, this.wasAttacked());
8696
nbt.putInt(TICKS_UNTIL_DESPAWN_NBT_NAME, this.getTicksUntilDespawn());
@@ -90,6 +100,11 @@ public void writeCustomDataToNbt(NbtCompound nbt) {
90100
@Override
91101
public void readCustomDataFromNbt(NbtCompound nbt) {
92102
super.readCustomDataFromNbt(nbt);
103+
104+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
105+
return;
106+
}
107+
93108
this.setIsIllusion(nbt.getBoolean(IS_ILLUSION_NBT_NAME));
94109
this.setWasAttacked(nbt.getBoolean(WAS_ATTACKED_NBT_NAME));
95110
this.setTicksUntilDespawn(nbt.getInt(TICKS_UNTIL_DESPAWN_NBT_NAME));
@@ -99,11 +114,12 @@ public void readCustomDataFromNbt(NbtCompound nbt) {
99114
@Override
100115
public void initGoals() {
101116
super.initGoals();
117+
102118
this.goalSelector.add(0, new SwimGoal(this));
103119
this.goalSelector.add(1, new LookAtTargetGoal());
104120
this.goalSelector.add(2, new FleeEntityGoal(this, IronGolemEntity.class, 8.0F, 0.6D, 1.0D));
105121

106-
if (!this.isIllusion()) {
122+
if (FriendsAndFoes.getConfig().enableIllusioner == false || this.isIllusion() == false) {
107123
this.goalSelector.add(3, BlindTargetGoalFactory.newBlindTargetGoal((IllusionerEntity) (Object) this));
108124
}
109125

@@ -119,12 +135,12 @@ public void initGoals() {
119135

120136
@Override
121137
public void tick() {
138+
super.tick();
139+
122140
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
123-
this.discard();
141+
return;
124142
}
125143

126-
super.tick();
127-
128144
if (this.getWorld().isClient()) {
129145
return;
130146
}
@@ -158,6 +174,10 @@ public void tick() {
158174
public void tickMovement() {
159175
super.tickMovement();
160176

177+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
178+
return;
179+
}
180+
161181
if (
162182
this.world.isClient()
163183
|| !this.isIllusion()
@@ -181,19 +201,31 @@ public void tickMovement() {
181201

182202
@Override
183203
public boolean shouldDropXp() {
184-
return !this.isIllusion();
204+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
205+
return super.shouldDropXp();
206+
}
207+
208+
return this.isIllusion() == false;
185209
}
186210

187211
@Override
188212
protected boolean shouldDropLoot() {
189-
return !this.isIllusion();
213+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
214+
return super.shouldDropLoot();
215+
}
216+
217+
return this.isIllusion() == false;
190218
}
191219

192220
@Override
193221
public boolean damage(
194222
DamageSource source,
195223
float amount
196224
) {
225+
if (FriendsAndFoes.getConfig().enableIllusioner == false) {
226+
return super.damage(source, amount);
227+
}
228+
197229
if (
198230
source.getAttacker() instanceof IllusionerEntity
199231
|| (

gradle.properties

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ org.gradle.configureondemand=false
88
# Mod
99
mod_name=Friends&Foes
1010
mod_id=friendsandfoes
11-
mod_version=1.5.10
11+
mod_version=1.5.11
1212
mod_author=Faboslav
1313
mod_description=Adds all eliminated mobs from the minecraft mob votes along with the forgotten mobs like the Illusioner.
1414
maven_group=com.faboslav.friendsandfoes
@@ -17,7 +17,7 @@ maven_group=com.faboslav.friendsandfoes
1717
minecraft_version=1.19.2
1818

1919
#Mappings
20-
yarn_mappings=1.19.2+build.1:v2
20+
yarn_mappings=1.19.2+build.18:v2
2121

2222
# Architectury
2323
enabled_platforms=fabric,forge,quilt
@@ -28,11 +28,11 @@ mixin_extras_version=0.0.12
2828

2929
# Fabric https://fabricmc.net/versions.html
3030
fabric_loader_version=0.14.9
31-
fabric_api_version=0.60.0+1.19.2
31+
fabric_api_version=0.62.0+1.19.2
3232

33-
# Forge https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
34-
forge_version=1.19.2-43.1.2
33+
# Forge https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.2.html
34+
forge_version=1.19.2-43.1.1
3535

3636
# Quilt https://lambdaurora.dev/tools/import_quilt.html
37-
quilt_loader_version=0.17.3
38-
quilt_fabric_api_version=4.0.0-beta.9+0.60.0-1.19.2
37+
quilt_loader_version=0.17.5-beta.3
38+
quilt_fabric_api_version=4.0.0-beta.13+0.62.0-1.19.2

0 commit comments

Comments
 (0)