Skip to content

Commit 2b406ae

Browse files
authored
Merge pull request #259 from FTBTeam/dev
Dev
2 parents 279362b + 2d33f8f commit 2b406ae

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2001.1.4]
8+
9+
### Fixed
10+
* Fixed a NoSuchMethodError crash with Game Stages mod
11+
* Worked around Optifine bug, which is firing Forge mob griefing events on the client and causing client crashes
12+
13+
## [2001.1.3]
14+
15+
### Fixed
16+
* Fixed Endermen still being able to grief claimed chunks
17+
* Related, fixes crashes with recent Forge releases (event cancelling semantics have changed for the mob griefing event)
18+
719
## [2001.1.2]
820

921
### Added

fabric/src/main/java/dev/ftb/mods/ftbchunks/integration/stages/fabric/GameStagesStageHelperImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public static void addStage(Player player, String stage) {
1818
public static void removeStage(Player player, String stage) {
1919
}
2020

21-
public static void sync(ServerPlayer player) {
21+
public static void syncStages(ServerPlayer player) {
2222
}
2323
}

forge/src/main/java/dev/ftb/mods/ftbchunks/forge/FTBChunksForge.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ private void entityInteractSpecific(PlayerInteractEvent.EntityInteractSpecific e
5656
private void mobGriefing(EntityMobGriefingEvent event) {
5757
// we could do this for all mob griefing but that's arguably OP (could trivialize wither fights, for example)
5858
// enderman block stealing is the most common annoyance, and this also has parity with the fabric support
59-
if (event.getEntity() instanceof EnderMan) {
59+
// Note: explicit check for server-side needed due to Optifine brain-damage
60+
if (event.getEntity() instanceof EnderMan && !event.getEntity().level().isClientSide()) {
6061
ClaimedChunkImpl cc = ClaimedChunkManagerImpl.getInstance().getChunk(new ChunkDimPos(event.getEntity()));
6162

6263
if (cc != null && !cc.allowMobGriefing()) {

forge/src/main/java/dev/ftb/mods/ftbchunks/integration/stages/forge/GameStagesStageHelperImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void removeStage(Player player, String stage) {
1717
if (player instanceof ServerPlayer sp) GameStageHelper.removeStage(sp, stage);
1818
}
1919

20-
public static void sync(ServerPlayer player) {
20+
public static void syncStages(ServerPlayer player) {
2121
GameStageHelper.syncPlayer(player);
2222
}
2323
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.daemon=false
55
mod_id=ftbchunks
66
archives_base_name=ftb-chunks
77
maven_group=dev.ftb.mods
8-
mod_version=2001.1.3
8+
mod_version=2001.1.4
99
mod_author=FTB Team
1010

1111
minecraft_version=1.20.1

0 commit comments

Comments
 (0)