Gregtech++ [GT++] [GTplusplus]

Gregtech++ [GT++] [GTplusplus]

94.1k Downloads

Config Option to Disable Open Blocks Gliders in Certain Dimensions [Future]

StoneLegion opened this issue ยท 0 comments

commented

We love to have an option to ban certain dimensions from being able to use the Glider for Open Blocks. Mostly for the Overworld to promote things like trains, etc and places like TF where heavy Glider usage is very taxing even if pre-generated.

The code you shared on Discord:

@SubscribeEvent
public void onPlayerRightClick(PlayerClickEvent aEvent){
  if (aEvent.getPlayer().getHeldItem() == OpenBlocks.Items.Glider && aEvent,getPlayer().getWorld().getID() == 0){ aEvent.cancel();}
} 

Thanks