File tree 3 files changed +8
-2
lines changed
forge/src/main/java/dev/ftb/mods/ftbchunks/forge
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1902.4.7]
8
+
9
+ ### Fixed
10
+ * Fixed Mob Griefing team setting (enderman block stealing protection) not functioning correctly
11
+
7
12
## [ 1902.4.6]
8
13
9
14
### Fixed
Original file line number Diff line number Diff line change 14
14
import net .minecraftforge .common .world .ForgeChunkManager ;
15
15
import net .minecraftforge .event .entity .EntityMobGriefingEvent ;
16
16
import net .minecraftforge .event .entity .player .PlayerInteractEvent ;
17
+ import net .minecraftforge .eventbus .api .Event ;
17
18
import net .minecraftforge .fml .common .Mod ;
18
19
import net .minecraftforge .fml .javafmlmod .FMLJavaModLoadingContext ;
19
20
@@ -58,7 +59,7 @@ private void mobGriefing(EntityMobGriefingEvent event) {
58
59
ClaimedChunk cc = FTBChunksAPI .getManager ().getChunk (new ChunkDimPos (event .getEntity ()));
59
60
60
61
if (cc != null && !cc .allowMobGriefing ()) {
61
- event .setCanceled ( true );
62
+ event .setResult ( Event . Result . DENY );
62
63
}
63
64
}
64
65
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ org.gradle.daemon=false
5
5
mod_id =ftbchunks
6
6
archives_base_name =ftb-chunks
7
7
maven_group =dev.ftb.mods
8
- mod_version =1902.4.6
8
+ mod_version =1902.4.7
9
9
mod_author =FTB Team
10
10
minecraft_version =1.19.2
11
11
forge_version =43.2.8
You can’t perform that action at this time.
0 commit comments