mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-16 14:59:46 +00:00
remove has Gravity again
This commit is contained in:
parent
073407346e
commit
82de60369a
|
@ -23,7 +23,6 @@ type entityState struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type serverEntityType struct {
|
type serverEntityType struct {
|
||||||
world.SaveableEntityType
|
|
||||||
Encoded string
|
Encoded string
|
||||||
NBT map[string]any
|
NBT map[string]any
|
||||||
}
|
}
|
||||||
|
@ -49,6 +48,8 @@ type serverEntity struct {
|
||||||
EntityType serverEntityType
|
EntityType serverEntityType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ world.SaveableEntityType = &serverEntityType{}
|
||||||
|
|
||||||
func (e serverEntity) Type() world.EntityType {
|
func (e serverEntity) Type() world.EntityType {
|
||||||
return e.EntityType
|
return e.EntityType
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,12 +73,5 @@ func (bp *BehaviourPack) AddEntity(entity EntityIn) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hasCollision := entity.Meta.Flag(protocol.EntityDataKeyFlags, protocol.EntityDataFlagHasCollision)
|
|
||||||
hasGravity := entity.Meta.Flag(protocol.EntityDataKeyFlags, protocol.EntityDataFlagHasGravity)
|
|
||||||
entry.MinecraftEntity.Components["minecraft:physics"] = map[string]any{
|
|
||||||
"has_collision": hasCollision,
|
|
||||||
"has_gravity": hasGravity,
|
|
||||||
}
|
|
||||||
|
|
||||||
bp.entities[entity.Identifier] = entry
|
bp.entities[entity.Identifier] = entry
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user