SL24W21: Difference between revisions

From ETM
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
* '''return EntityHuman.this.containerMenu.getCarried(); / SlotAccess 499 ?'''
* '''return EntityHuman.this.containerMenu.getCarried(); / SlotAccess 499 ?'''
* '''EntityAttachments?'''
* '''EntityAttachments?'''
* '''Enchantment.Rarity'''
*          '''if(isEnchanted()) processEnchantOrder(getEnchantmentTags()); // Kade ItemStack'''
* <syntaxhighlight lang="java">
       
// kade 1.18 edit, armorstand maxima check as ItemArmorStand is not yet deobfuscated
if (this.getItem() instanceof ItemArmorStand) {
// From ItemArmorStand
EnumDirection enumdirection = itemactioncontext.getClickedFace();
if (enumdirection != EnumDirection.DOWN) {
BlockPosition asPos = new BlockPosition(blockposition.getX(), 0, blockposition.getZ());
BlockActionContext blockactioncontext = new BlockActionContext(itemactioncontext);
boolean flag = world.getBlockState(asPos).canBeReplaced(blockactioncontext);
BlockPosition asPos1 = flag ? asPos : asPos.relative(enumdirection);
/* if (world.getChunkAtWorldCoords(asPos1).isAtArmorStandLimit()) { // kade 1.17
Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity();
who.sendMessage("Armorstand-Limit on this chunk reached.");
world.captureBlockStates = false;
return EnumInteractionResult.FAIL;
}*/
}
      }
</syntaxhighlight>

Revision as of 17:15, 21 May 2024

◄ SL24W20 | SL24W22 ►

  • Server is getting laggy when chunks are replaced by a chunkli action
  • Websocket connection is bugged?
  • Implement StasiLookups using Area-Containers from the BlockSelMem


1.20.6 Changes / Things to look at

  • DataWatcher
  • TransferCookieConnection
  • BLOCK_INTERACTION_RANGE, CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
  • ENTITY_INTERACTION_RANGE, CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
  • GameRules.RULE_SPAWN_CHUNK_RADIUS force set to 0
  • startMeasuringTaskExecutionTime test TPS commands
  • Change FALL_DAMAGE_MULTIPLIER while rocketboots flying?
  • Test GRAVITY for ISS world
  • Test SCALE
  • ItemStack.isSameItemSameComponents(itemstack, itemstack1)
  • return EntityHuman.this.containerMenu.getCarried(); / SlotAccess 499 ?
  • EntityAttachments?
  • Enchantment.Rarity
  •          if(isEnchanted()) processEnchantOrder(getEnchantmentTags()); // Kade ItemStack
  • 			        
    		// kade 1.18 edit, armorstand maxima check as ItemArmorStand is not yet deobfuscated 
    		if (this.getItem() instanceof ItemArmorStand) {
    			// From ItemArmorStand
    			EnumDirection enumdirection = itemactioncontext.getClickedFace();
    			if (enumdirection != EnumDirection.DOWN) {
    				BlockPosition asPos = new BlockPosition(blockposition.getX(), 0, blockposition.getZ());
    				BlockActionContext blockactioncontext = new BlockActionContext(itemactioncontext);
    				boolean flag = world.getBlockState(asPos).canBeReplaced(blockactioncontext);
    				BlockPosition asPos1 = flag ? asPos : asPos.relative(enumdirection);
    				
    			/*	if (world.getChunkAtWorldCoords(asPos1).isAtArmorStandLimit()) { // kade 1.17
    					Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity();
    					who.sendMessage("Armorstand-Limit on this chunk reached.");
    					world.captureBlockStates = false;
    					return EnumInteractionResult.FAIL;
    				}*/
    				}
           	 }