Skip to content

Commit

Permalink
Configurable permission bridge & readme changes
Browse files Browse the repository at this point in the history
Configurable permission bridge & readme changes
  • Loading branch information
HaHaWTH authored Dec 26, 2024
2 parents 5ec97e6 + e4d2b77 commit 11c42cf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions FIXED_UPSTREAM_ISSUES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Fixed upstream issues

### Modpacks

- Cannot launch MC Eternal[(CatServer#904)](https://github.com/Luohuayu/CatServer/issues/904)

### Forge-Bukkit

- Some mod explosions cannot be handled by Bukkit plugins(e.g. Tinkers' Construct EFLN)

### Mods

- Simple Difficulty(And any other similar mods) thirst is not getting reset on player respawn[(Luohuayu/CatServer#536)](https://github.com/Luohuayu/CatServer/issues/536)[(MohistMC/Mohist#2905)](https://github.com/MohistMC/Mohist/issues/2905)

**All fixes have been contributed to the upstream project.**
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ CatRoom is a Cleanroom+Bukkit+Spigot server software forked from [CatServer](htt
- Make use of modern Java features
- Optimized plugin performance

For all fixes, see [fixed upstream issues](FIXED_UPSTREAM_ISSUES.md)

## Components:

- Minecraft Coder Pack
Expand Down
1 change: 1 addition & 0 deletions src/main/java/catserver/server/CatServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

public class CatServer {
public static final Logger log = LogManager.getLogger("CatServer");
public static final boolean DISABLE_PERMISSION_BRIDGE = Boolean.getBoolean("catserver.disablePermissionBridge");
private static final String version = "2.1.0";
private static final String native_version = "v1_12_R1";

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/minecraftforge/fml/common/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ public void preinitializeMods()
GameData.fireCreateRegistryEvents();
ObjectHolderRegistry.INSTANCE.findObjectHolders(discoverer.getASMTable());
ItemStackHolderInjector.INSTANCE.findHolders(discoverer.getASMTable());
net.minecraftforge.server.permission.PermissionAPI.setPermissionHandler(new catserver.server.permission.BukkitForgePermissionHandler()); // CatRoom - Permission bridge
if (!catserver.server.CatServer.DISABLE_PERMISSION_BRIDGE) net.minecraftforge.server.permission.PermissionAPI.setPermissionHandler(new catserver.server.permission.BukkitForgePermissionHandler()); // CatRoom - Permission bridge
CapabilityManager.INSTANCE.injectCapabilities(discoverer.getASMTable());
modController.distributeStateMessage(LoaderState.PREINITIALIZATION, discoverer.getASMTable(), canonicalConfigDir);
GameData.fireRegistryEvents(rl -> !rl.equals(GameData.RECIPES));
Expand Down

0 comments on commit 11c42cf

Please sign in to comment.